dont use the client's colormap if it is set to None!

This commit is contained in:
Dana Jansens 2003-03-21 09:54:54 +00:00
parent c2cbef62bb
commit 0cb6f81276

View file

@ -430,7 +430,8 @@ void screen_install_colormap(Client *client, gboolean install)
XUninstallColormap(ob_display, render_colormap);
} else {
XWindowAttributes wa;
if (XGetWindowAttributes(ob_display, client->window, &wa)) {
if (XGetWindowAttributes(ob_display, client->window, &wa) &&
wa.colormap != None) {
if (install)
XInstallColormap(ob_display, wa.colormap);
else