]> Dogcows Code - chaz/openbox/commitdiff
dont use the client's colormap if it is set to None!
authorDana Jansens <danakj@orodu.net>
Fri, 21 Mar 2003 09:54:54 +0000 (09:54 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 21 Mar 2003 09:54:54 +0000 (09:54 +0000)
openbox/screen.c

index 2e6ff3f14fb8ace58ebb64d5ba8132a10f581c9a..073b565f0342e239cd469f140c4d8054c2b8d817 100644 (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
This page took 0.027429 seconds and 4 git commands to generate.