Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!uunet!ingr!b11!doyle From: doyle@b11.ingr.com (Doyle Davidson) Newsgroups: comp.windows.x Subject: TWM and Focus and Colormap Keywords: twm focus colormap Message-ID: <8471@b11.ingr.com> Date: 10 Aug 90 19:41:28 GMT Organization: Intergraph Corp. Huntsville, AL Lines: 45 I am having a problem with TWM and focusing on windows that have their own colormaps. If I focus on a window with it's own colormap, that colormap remains installed in the hardware colormap until I move over the root window. At that point, TWM installs the default colormap so that the user can read the window labels and see any popup menus. (That's why it does it according to the source) BUT, when I move back to my focused window, or any other window for that matter, the colormap is not reinstalled. I have to un/refocus on the window to get it back. I can see a few solutions (and have code for first two). a) restore the colormap when exiting the root window Still too much techniflicker. b) never install default colormap until a focus on root is performed. Which may make popup menus unreadable. May not be able to find root space easily then. c) only install default colormap when popping up menus? May not be able to find root space easily then. My question is: is there any defined behaviour for this situation (ICCCM?) or is it up to the window manager to do "whatever it wants"? I would think that the colormap of a focused window should not be uninstalled unless a WM graphics action (popup menu) occurs and then restored afterwards. (Don't have any TWM patch for this) Or should I just file a bug (WAD?) report and sample fix code. Doyle (wishing life was only black and white - nah!) Davidson ------------------------------------------------------------------ Doyle C. Davidson | Intergraph Corp. | These comments are... Workstation Graphics Standards | 1 Madison Industrial Park | Huntsville, AL 35806 | (205) 730-2000 | X-clusively my own. | ..!uunet!ingr!doyle | ------------------------------------------------------------------