]> icculus.org git repositories - mikachu/openbox.git/blob - openbox/startup.c
restore the desktop and focused window on restarts if possible
[mikachu/openbox.git] / openbox / startup.c
1 #include "prop.h"
2 #include "screen.h"
3 #include "client.h"
4 #include "focus.h"
5 #include "config.h"
6 #include "openbox.h"
7
8 guint32 *startup_stack_order = NULL;
9 guint    startup_stack_size = 0;
10 guint32  startup_active = None;
11 guint32  startup_desktop = 0;
12
13 void startup_save()
14 {
15     /* save the stacking order on startup! */
16     PROP_GETA32(ob_root, net_client_list_stacking, window,
17                 (guint32**)&startup_stack_order, &startup_stack_size);
18     PROP_GET32(ob_root, net_active_window, window, &startup_active);
19     PROP_GET32(ob_root, net_current_desktop, cardinal, &startup_desktop);
20 }