Skip to content

Instantly share code, notes, and snippets.

--- a/w3mimg/x11/x11_w3mimg.c 2004-11-08 12:14:06.000000000 -0500
+++ b/w3mimg/x11/x11_w3mimg.c 2015-03-12 23:23:44.964555734 -0400
@@ -214,9 +214,12 @@
Pixmap p;
GC gc;
XImage *i;
+ XWindowAttributes attr;
+
+ XGetWindowAttributes(xi->display, xi->window, &attr);