Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!sun-barr!decwrl!gilroy.pa.dec.com!klee From: klee@gilroy.pa.dec.com (Ken Lee) Newsgroups: comp.windows.x Subject: Re: Virtual colormaps & DECwindows Message-ID: <1615@bacchus.dec.com> Date: 24 Jul 89 22:23:23 GMT References: <8286@boring.cwi.nl> <223@nap1.cds.wpafb.af.mil> <8907240118.AA18657@jumbo.pa.dec.com> Sender: news@decwrl.dec.com Lines: 28 In article <8286@boring.cwi.nl>, guido@cwi.nl (Guido van Rossum) writes: > Mark Manasse replies: > > >The currently-shipped version of dxwm keeps > >track of what it believes to be the focus window for colormap, and > >keeps that window's colormap installed. Since the current release > >of dxwm predates the ICCCM's adoption of COLORMAP_WINDOWS, it does > >not implement that feature of the ICCCM. > > Mark's explanation seems to imply that you can't get a colormap > installed at all by dxwm, but life isn't that bad. Some playing with > Doug Young's coloredit example (which needs some lay-out changes for 256 > colors, BTW!) reveals that calling XSetWindowColormap(display, window, > colormap) works, both for twm and for dxwm. Young claims this is > the ICCCM-conformant way. Actually, there are 2 different ICCCM proposals for colormaps. The X11R2 colormap proposal uses the RGB_COLOR_MAP property. This is used by the UWS2.1 version of dxwm and by the X11R3 XSetWindowColormap. The X11R4 colormap proposal (proposed in January and I think recently accepted as the standard) uses the COLORMAP_WINDOWS property. X11R4 clients using the COLORMAP_WINDOWS property will not work with properly the UWS2.1 dxwm. Ken Lee DEC Western Software Laboratory, Palo Alto, Calif. Internet: klee@decwrl.dec.com uucp: uunet!decwrl!klee