[BUG][FIX] Colormap support under X without a window manager

Duane Maxwell dmaxwell at exobox.com
Tue Aug 22 20:15:29 UTC 2000


Forwarded from David Fox <dfox at exobox.com>:

In X the window manager is generally responsible for installing and
uninstalling an application's colormap when the application gains or
loses focus.  However, if no window manager is running the application
needs to install the colormap itself, and Squeak doesn't do this.
Hence, the following patch:

--- src/sqXWindow.c.cmap~	Tue Aug 22 11:18:24 2000
+++ src/sqXWindow.c	Tue Aug 22 11:18:24 2000
@@ -1188,6 +1188,7 @@
   if (stVisual->class == PseudoColor)
     {
       XSetWindowColormap(stDisplay, stWindow, stColormap);
+      XInstallColormap(stDisplay, stColormap);
       stColorWhite.pixel= 0;
       stColorBlack.pixel= 1;
 #if 0






More information about the Squeak-dev mailing list