summaryrefslogtreecommitdiff
path: root/openbox/screen.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-03-21 10:33:26 +0000
committerDana Jansens <danakj@orodu.net>2003-03-21 10:33:26 +0000
commitd33dce48275056fd4492160624d9bc99dd2603c1 (patch)
treed36986c1c7dda7ff1d6d23081514014a179790d1 /openbox/screen.c
parentcd1694cd1c0b1d5d769a5e9d01dfa41b9a431bb0 (diff)
defn vars at the top of funcs
Diffstat (limited to 'openbox/screen.c')
-rw-r--r--openbox/screen.c3
1 files changed, 2 insertions, 1 deletions
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)