]> Dogcows Code - chaz/openbox/commitdiff
defn vars at the top of funcs
authorDana Jansens <danakj@orodu.net>
Fri, 21 Mar 2003 10:33:26 +0000 (10:33 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 21 Mar 2003 10:33:26 +0000 (10:33 +0000)
openbox/screen.c

index 073b565f0342e239cd469f140c4d8054c2b8d817..550d7266b42b7b317a61fde420356084bcd44c97 100644 (file)
@@ -423,13 +423,14 @@ void screen_show_desktop(gboolean show)
 
 void screen_install_colormap(Client *client, gboolean install)
 {
+    XWindowAttributes wa;
+
     if (client == NULL) {
        if (install)
            XInstallColormap(ob_display, render_colormap);
        else
            XUninstallColormap(ob_display, render_colormap);
     } else {
-       XWindowAttributes wa;
        if (XGetWindowAttributes(ob_display, client->window, &wa) &&
             wa.colormap != None) {
            if (install)
This page took 0.027717 seconds and 4 git commands to generate.