Make 16768a5ad4fdf58e1f7a9a1b949c055c846ea0e2 C90-compliant
authorNikolas Garofil <garo@dunaldi.garofil.be>
Tue, 14 Jul 2009 17:17:14 +0000 (19:17 +0200)
committerNikolas Garofil <garo@dunaldi.garofil.be>
Tue, 14 Jul 2009 17:17:14 +0000 (19:17 +0200)
src/x11.c

index 9fdae2f..fa6ec8c 100644 (file)
--- a/src/x11.c
+++ b/src/x11.c
@@ -663,6 +663,7 @@ void get_x11_desktop_info(Display *current_display, Atom atom)
         Window root;
        static Atom atom_current, atom_number, atom_names;
        struct information *current_info = &info;
+       XWindowAttributes window_attributes;
 
        root = RootWindow(current_display, current_info->x11.monitor.current);
 
@@ -677,7 +678,6 @@ void get_x11_desktop_info(Display *current_display, Atom atom)
          get_x11_desktop_current_name(current_info->x11.desktop.all_names);
 
          //Set the PropertyChangeMask on the root window, if not set
-         XWindowAttributes window_attributes;
          XGetWindowAttributes(display, root, &window_attributes);
          if (!(window_attributes.your_event_mask & PropertyChangeMask)) {
            XSetWindowAttributes attributes;