rem: XInstallColormap(dpy, scr->current_colormap);
add: if (!scr->flags.colormap_stuff_blocked) XInstallColormap(dpy, scr->current_colormap);
context: handleColormapNotify(XEvent *event){    WWindow *wwin;    WScreen *scr;    Bool reinstall = False;        wwin = wWindowFor(event->xcolormap.window);    if (!wwin)	return;        scr = wwin->screen_ptr;    do {	if (wwin) {	    if (event->xcolormap.new) {		XWindowAttributes attr;				XGetWindowAttributes(dpy, wwin->client_win, &attr);		if (wwin == scr->cmap_window && wwin->cmap_window_no == 0)		    scr->current_colormap = attr.colormap;		reinstall = True;	    } else if (event->xcolormap.state == ColormapUninstalled &&		       scr->current_colormap == event->xcolormap.colormap) {		/* some bastard app (like XV) removed our colormap */		reinstall = True;	    } else if (event->xcolormap.state == ColormapInstalled &&		       scr->current_colormap == event->xcolormap.colormap) {		/* someone has put our colormap back */		reinstall = False;	    }	}    } while (XCheckTypedEvent(dpy, ColormapNotify, event)	     && ((wwin = wWindowFor(event->xcolormap.window)) || 1));    if (reinstall && scr->current_colormap!=None) {	XInstallColormap(dpy, scr->current_colormap);    }}