aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fluxbox.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index 058c858..ddb09e2 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.cc
@@ -1155,8 +1155,6 @@ void Fluxbox::update(FbTk::Subject *changedsub) {
1155 1155
1156 BScreen &screen = client->screen(); 1156 BScreen &screen = client->screen();
1157 1157
1158 screen.removeClient(*client);
1159
1160 // At this point, we trust that this client is no longer in the 1158 // At this point, we trust that this client is no longer in the
1161 // client list of its frame (but it still has reference to the frame) 1159 // client list of its frame (but it still has reference to the frame)
1162 // We also assume that any remaining active one is the last focused one 1160 // We also assume that any remaining active one is the last focused one
@@ -1170,6 +1168,8 @@ void Fluxbox::update(FbTk::Subject *changedsub) {
1170 m_revert_screen = &screen; 1168 m_revert_screen = &screen;
1171 m_revert_timer.start(); 1169 m_revert_timer.start();
1172 } 1170 }
1171
1172 screen.removeClient(*client);
1173 } else if (typeid(*changedsub) == typeid(BScreen::ScreenSubject)) { 1173 } else if (typeid(*changedsub) == typeid(BScreen::ScreenSubject)) {
1174 BScreen::ScreenSubject *subj = dynamic_cast<BScreen::ScreenSubject *>(changedsub); 1174 BScreen::ScreenSubject *subj = dynamic_cast<BScreen::ScreenSubject *>(changedsub);
1175 BScreen &screen = subj->screen(); 1175 BScreen &screen = subj->screen();