dont use the client's colormap if it is set to None!
This commit is contained in:
parent
c2cbef62bb
commit
0cb6f81276
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue