ignore errors when playing with application defined colormaps
This commit is contained in:
parent
ea6d0e0d4d
commit
32390c6b6d
1 changed files with 2 additions and 0 deletions
|
@ -487,10 +487,12 @@ void screen_install_colormap(Client *client, gboolean install)
|
||||||
} else {
|
} else {
|
||||||
if (XGetWindowAttributes(ob_display, client->window, &wa) &&
|
if (XGetWindowAttributes(ob_display, client->window, &wa) &&
|
||||||
wa.colormap != None) {
|
wa.colormap != None) {
|
||||||
|
xerror_set_ignore(TRUE);
|
||||||
if (install)
|
if (install)
|
||||||
XInstallColormap(ob_display, wa.colormap);
|
XInstallColormap(ob_display, wa.colormap);
|
||||||
else
|
else
|
||||||
XUninstallColormap(ob_display, wa.colormap);
|
XUninstallColormap(ob_display, wa.colormap);
|
||||||
|
xerror_set_ignore(FALSE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue