Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ncar!husc6!endor!kochhar From: kochhar@endor.harvard.edu (Sandeep Kochhar) Newsgroups: comp.windows.x Subject: Colormap question Message-ID: <2186@husc6.harvard.edu> Date: 12 Mar 90 05:38:48 GMT Sender: news@husc6.harvard.edu Reply-To: kochhar@endor.harvard.edu (Sandeep Kochhar) Distribution: usa Organization: Aiken Computation Lab Harvard, Cambridge, MA Lines: 30 Config: X11R4, twm, Sparcstation I I have a program that creates a window and a colormap and associates the colormap with the window using XSetWindowColormap(). This works fine, in that when the cursor comes into the window, twm switches to my colormap, and when I move out of the window, it switches back, and so on. However, on random occasions (not always), I get the message twm: client illegally changed colormap (i = -1, j = -1 Also, sometimes on those occasions, twm doesn't install my colormap when I enter the program window. Anybody have any ideas? (Note: the only other colormap related calls I use are: XCreateColormap, XStoreColor, XLookupColor) Thanks. Sandeep Kochhar (617) 495-3988 mail: kochhar@harvard.harvard.edu Harvard University kochhar@harvard.csnet 33 Oxford st, kochhar@harvard.uucp Cambridge, MA 02138 kochhar@harvard.bitnet Fax: (617) 495-9837