Flush X11GraphicsContext.xftDrawId after snapin. delegated_gc_jv
authorJan Vrany <jan.vrany@fit.cvut.cz>
Thu, 09 Oct 2014 00:05:21 +0100
branchdelegated_gc_jv
changeset 6615 ea4e1faf457a
parent 6566 949689795584
child 6616 9dad6d1245cc
Flush X11GraphicsContext.xftDrawId after snapin.
XWorkstation.st
--- a/XWorkstation.st	Mon Sep 08 16:53:24 2014 +0100
+++ b/XWorkstation.st	Thu Oct 09 00:05:21 2014 +0100
@@ -13384,6 +13384,18 @@
     ^ super displayString:aString x:x y:y opaque:opaque
 ! !
 
+!XWorkstation::X11GraphicsContext methodsFor:'initialization & release'!
+
+prepareForReinit
+    "kludge - clear drawableId and gcId
+     needed after snapin"
+
+    super prepareForReinit.
+    xftDrawId := nil.
+
+    "Created: / 09-10-2014 / 00:02:09 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+! !
+
 !XWorkstation class methodsFor:'documentation'!
 
 version