summaryrefslogtreecommitdiff
path: root/openbox/startup.c
diff options
context:
space:
mode:
Diffstat (limited to 'openbox/startup.c')
-rw-r--r--openbox/startup.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/openbox/startup.c b/openbox/startup.c
index 6d381ff5..8b6259a7 100644
--- a/openbox/startup.c
+++ b/openbox/startup.c
@@ -13,8 +13,11 @@ guint32 startup_desktop = 0;
void startup_save()
{
/* save the stacking order on startup! */
- PROP_GETA32(ob_root, net_client_list_stacking, window,
+ PROP_GETA32(RootWindow(ob_display, ob_screen),
+ net_client_list_stacking, window,
(guint32**)&startup_stack_order, &startup_stack_size);
- PROP_GET32(ob_root, net_active_window, window, &startup_active);
- PROP_GET32(ob_root, net_current_desktop, cardinal, &startup_desktop);
+ PROP_GET32(RootWindow(ob_display, ob_screen),
+ net_active_window, window, &startup_active);
+ PROP_GET32(RootWindow(ob_display, ob_screen),
+ net_current_desktop, cardinal, &startup_desktop);
}