From d3c094357d06f4e65681e7ca7e227a33ebd122a4 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 25 Apr 2003 22:35:08 +0000 Subject: restore the desktop and focused window on restarts if possible --- openbox/openbox.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'openbox/openbox.c') 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(); -- cgit v1.2.3