Path: utzoo!yunexus!ists!jarvis.csri.toronto.edu!mailrus!shadooby!samsung!cs.utexas.edu!rutgers!cmcl2!yale!cs.yale.edu!gropp-bill From: gropp-bill@CS.Yale.EDU (Bill Gropp) Newsgroups: comp.windows.x Subject: Colormaps Message-ID: <5932@cs.yale.edu> Date: 17 Nov 89 18:45:44 GMT Article-I.D.: cs.5932 Sender: news@cs.yale.edu Reply-To: gropp-bill@CS.Yale.EDU (Bill Gropp) Organization: Yale University Computer Science Dept, New Haven CT 06520-2158 Lines: 24 What is the best way to do the following: I have an application that wants to have its own colormap for a window; the colors in this window should be dynamic and defineable by the application. The number of colors needed may be small relative to the number of colors available on the server (for example, 8 colors on an 8 plane system). When my colormap is installed by the window manager, I'd like the least damage done to other applications. In particular, I'd like to maintain "WhitePixel" and "BlackPixel" as meaning "white" and "black", even if it means adding additional colors to my colormap. Currently, I create a colormap and use XAllocColor to set entries in it. Under uwm and twm on a Sun, when my window's colormap is installed, other windows that are in black and white only are unchanged. On a dec3100 using dxwm, black stays black but white becomes red. I understand that when one colormap is installed, other windows will be displayed in false color (black and red in this case). What I want to know is what is the Mechanism for preserving as much of the "default" colormap as possible. Thanks in advance. Bill Gropp