#include "openbox.h"
#include "prop.h"
+#include "screen.h"
#include "focus.h"
#include "client.h"
#include "group.h"
#include "frame.h"
#include "window.h"
-#include <glib.h>
GList *stacking_list = NULL;
/* 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!) */
}
}
- 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);
}
win = g_new(Window, g_list_length(wins) + 1);
if (before == stacking_list)
- win[0] = focus_backup;
+ win[0] = screen_support_win;
else if (!before)
win[0] = window_top(g_list_last(stacking_list)->data);
else
ObStackingLayer l;
GList *wins;
- g_assert(focus_backup != None); /* make sure I dont break this in the
+ g_assert(screen_support_win != None); /* make sure I dont break this in the
future */
l = window_layer(win);