projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2cbef6
)
dont use the client's colormap if it is set to None!
author
Dana Jansens
<danakj@orodu.net>
Fri, 21 Mar 2003 09:54:54 +0000
(09:54 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Fri, 21 Mar 2003 09:54:54 +0000
(09:54 +0000)
openbox/screen.c
patch
|
blob
|
history
diff --git
a/openbox/screen.c
b/openbox/screen.c
index 2e6ff3f14fb8ace58ebb64d5ba8132a10f581c9a..073b565f0342e239cd469f140c4d8054c2b8d817 100644
(file)
--- a/
openbox/screen.c
+++ b/
openbox/screen.c
@@
-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