aboutsummaryrefslogtreecommitdiff
path: root/src/Remember.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Remember.cc')
-rw-r--r--src/Remember.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/Remember.cc b/src/Remember.cc
index 9569b80..cf2c934 100644
--- a/src/Remember.cc
+++ b/src/Remember.cc
@@ -963,7 +963,7 @@ void Remember::setupFrame(FluxboxWindow &win) {
963 return; // nothing to do 963 return; // nothing to do
964 964
965 // first, set the options that aren't preserved as window properties on 965 // first, set the options that aren't preserved as window properties on
966 // restart, then return if fluxbox is starting up -- we want restart to 966 // restart, then return if fluxbox is restarting -- we want restart to
967 // disturb the current window state as little as possible 967 // disturb the current window state as little as possible
968 Window leftwin = winclient.getGroupLeftWindow(); 968 Window leftwin = winclient.getGroupLeftWindow();
969 if (app->is_grouped && app->group == 0 && leftwin == None) 969 if (app->is_grouped && app->group == 0 && leftwin == None)
@@ -978,12 +978,12 @@ void Remember::setupFrame(FluxboxWindow &win) {
978 if (app->decostate_remember) 978 if (app->decostate_remember)
979 win.setDecorationMask(app->decostate); 979 win.setDecorationMask(app->decostate);
980 980
981 // now check if fluxbox is starting up
982 if (Fluxbox::instance()->isStartup())
983 return;
984
985 BScreen &screen = winclient.screen(); 981 BScreen &screen = winclient.screen();
986 982
983 // now check if fluxbox is restarting
984 if (screen.isRestart())
985 return;
986
987 if (app->workspace_remember) { 987 if (app->workspace_remember) {
988 // we use setWorkspace and not reassoc because we're still initialising 988 // we use setWorkspace and not reassoc because we're still initialising
989 win.setWorkspace(app->workspace); 989 win.setWorkspace(app->workspace);
@@ -1050,7 +1050,7 @@ void Remember::setupFrame(FluxboxWindow &win) {
1050 1050
1051void Remember::setupClient(WinClient &winclient) { 1051void Remember::setupClient(WinClient &winclient) {
1052 1052
1053 if (Fluxbox::instance()->isStartup()) 1053 if (winclient.screen().isRestart())
1054 return; // don't mess up windows on restart 1054 return; // don't mess up windows on restart
1055 1055
1056 Application *app = find(winclient); 1056 Application *app = find(winclient);