From d33dce48275056fd4492160624d9bc99dd2603c1 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 21 Mar 2003 10:33:26 +0000 Subject: [PATCH] defn vars at the top of funcs --- openbox/screen.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openbox/screen.c b/openbox/screen.c index 073b565f..550d7266 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -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) -- 2.39.2