diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-04-25 22:35:08 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-04-25 22:35:08 +0000 |
| commit | d3c094357d06f4e65681e7ca7e227a33ebd122a4 (patch) | |
| tree | 7475cd04538d656d8251924a50938671a3b5a7fb /openbox/startup.c | |
| parent | 92d3f2342db3d3bfd5d41a6c3dc165efa7766ffa (diff) | |
restore the desktop and focused window on restarts if possible
Diffstat (limited to 'openbox/startup.c')
| -rw-r--r-- | openbox/startup.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/openbox/startup.c b/openbox/startup.c new file mode 100644 index 00000000..6d381ff5 --- /dev/null +++ b/openbox/startup.c @@ -0,0 +1,20 @@ +#include "prop.h" +#include "screen.h" +#include "client.h" +#include "focus.h" +#include "config.h" +#include "openbox.h" + +guint32 *startup_stack_order = NULL; +guint startup_stack_size = 0; +guint32 startup_active = None; +guint32 startup_desktop = 0; + +void startup_save() +{ + /* save the stacking order on startup! */ + PROP_GETA32(ob_root, 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); +} |
