]> Dogcows Code - chaz/openbox/blobdiff - openbox/stacking.c
oops extra menu_layout
[chaz/openbox] / openbox / stacking.c
index c9dcb0b738a75dced08456ea6e368ab8e31dfed8..bab7b765e5a8efffe09af0c642e2bcb319698bd2 100644 (file)
@@ -6,7 +6,6 @@
 #include "group.h"
 #include "frame.h"
 #include "window.h"
-#include <glib.h>
 
 GList  *stacking_list = NULL;
 
@@ -19,7 +18,7 @@ void stacking_set_list()
     /* on shutdown, don't update the properties, so that we can read it back
        in on startup and re-stack the windows as they were before we shut down
     */
-    if (ob_state == OB_STATE_EXITING) return;
+    if (ob_state() == OB_STATE_EXITING) return;
 
     /* create an array of the window ids (from bottom to top,
        reverse order!) */
@@ -31,8 +30,8 @@ void stacking_set_list()
         }
     }
 
-    PROP_SETA32(ob_root, net_client_list_stacking, window,
-                (guint32*)windows, i);
+    PROP_SETA32(RootWindow(ob_display, ob_screen),
+                net_client_list_stacking, window, (guint32*)windows, i);
 
     g_free(windows);
 }
This page took 0.020134 seconds and 4 git commands to generate.