[Gridflow-cvs] [svn] commit: r5040 - /trunk/src/x11.cxx

gridflow-cvs at artengine.ca gridflow-cvs at artengine.ca
Tue Feb 23 02:00:49 EST 2010


Author: matju
Date: Tue Feb 23 02:00:48 2010
New Revision: 5040

Log:
fix crash of [#out x11 ... root] due to missing GC.

Modified:
    trunk/src/x11.cxx

Modified: trunk/src/x11.cxx
==============================================================================
--- trunk/src/x11.cxx (original)
+++ trunk/src/x11.cxx Tue Feb 23 02:00:48 2010
@@ -497,9 +497,9 @@
 			KeyPressMask|KeyReleaseMask);
 
 		if (is_owner) XMapRaised(display, window);
-		imagegc = XCreateGC(display, window, 0, NULL);
 		if (visual->c_class == PseudoColor) prepare_colormap();
 	}
+	if (!imagegc) imagegc = XCreateGC(display, window, 0, NULL);
 	XSync(display,0);
 }
 



More information about the Gridflow-cvs mailing list