[comp.windows.x] twm colormap loading

ksung@m.cs.uiuc.edu (02/02/90)

I have problem with twm loading and unloading the colormap for
specific windows.  Here's what I'm doing:


	window   = XCreateWindow(...)
	colorMap = XCreateColorMap(..)

	XSetWindowColormap(dpy, window, colorMap)
		
	colorMapProp = XInternAtom(dpy, "WM_COLORMAP_WINDOWS", False);

	XChangeProperty(dpy, window, XA_COLORMAP, colorMapProp, 32,
		PropModeReplace, (char *)&colors, 1);

The problem is when the pointer moves into the window, twm 
will automatically load the colormap. But twm does not reload
the default root window colormap after the pointer moved
out of the window. Am I doing something wrong? Is what
I have described the correct twm behavior?

Thanks for any help.

Kelvin Sung
University of Illinois at Urbana-Champaign
Department of Computer Science
1304 W. Springfield Ave.
Urbana, IL 61801

ksung@cs.uiuc.edu