summaryrefslogtreecommitdiff
path: root/openbox/openbox.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-04-25 22:35:08 +0000
committerDana Jansens <danakj@orodu.net>2003-04-25 22:35:08 +0000
commitd3c094357d06f4e65681e7ca7e227a33ebd122a4 (patch)
tree7475cd04538d656d8251924a50938671a3b5a7fb /openbox/openbox.c
parent92d3f2342db3d3bfd5d41a6c3dc165efa7766ffa (diff)
restore the desktop and focused window on restarts if possible
Diffstat (limited to 'openbox/openbox.c')
-rw-r--r--openbox/openbox.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/openbox/openbox.c b/openbox/openbox.c
index 1f5ded49..ea9b895f 100644
--- a/openbox/openbox.c
+++ b/openbox/openbox.c
@@ -5,6 +5,7 @@
#include "dispatch.h"
#include "xerror.h"
#include "prop.h"
+#include "startup.h"
#include "screen.h"
#include "focus.h"
#include "moveresize.h"
@@ -151,6 +152,9 @@ int main(int argc, char **argv)
prop_startup(); /* get atoms values for the display */
extensions_query_all(); /* find which extensions are present */
+ /* save stuff that we can use to restore state */
+ startup_save();
+
if (screen_annex()) { /* it will be ours! */
/* startup the parsing so everything can register sections of the rc */
parse_startup();