ignore errors when playing with application defined colormaps

This commit is contained in:
Dana Jansens 2003-05-20 05:02:24 +00:00
parent ea6d0e0d4d
commit 32390c6b6d

View file

@ -487,10 +487,12 @@ void screen_install_colormap(Client *client, gboolean install)
} else {
if (XGetWindowAttributes(ob_display, client->window, &wa) &&
wa.colormap != None) {
xerror_set_ignore(TRUE);
if (install)
XInstallColormap(ob_display, wa.colormap);
else
XUninstallColormap(ob_display, wa.colormap);
xerror_set_ignore(FALSE);
}
}
}