Path: utzoo!utgpu!utstat!jarvis.csri.toronto.edu!rutgers!ucsd!tut.cis.ohio-state.edu!bloom-beacon!XVAX.BBN.COM!KEMPLER From: KEMPLER@XVAX.BBN.COM Newsgroups: comp.windows.x Subject: Setting a new colormap Message-ID: <8911142132.AA10356@expo.lcs.mit.edu> Date: 14 Nov 89 21:28:00 GMT Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 30 Everyone - Please help clarify for me. I was reading the ICCCM about Colormaps (4.1.8). I'm trying to figure out what to do if I need more room for colormap entries than is available in the current colormap for a window. From the ICCCM (and other sources) it sounds like I'm supposed to do the following. 1. Use XCopyColormapAndFree: 2. Then if all of my windows and subwindow share colormaps, use XChangeWindowAttributes Otherwise, use XChangeProperties to set the colormap. Both of these notify the window manager about a colormap change. 3. Never use XInstallColormap. Leave that to the window manager. But what about XSetStandardColormap? What about XSetWindowColormap? Basically, is XChangeWindowAttributes/XChangeProperties sufficient to "install" the new colormap? Is there any way to request that a new colormap be installed for all of a client's windows without explicitly calling XChangeWindowAttributes for each window? Thanks for any info on this topic - Lisa