aboutsummaryrefslogtreecommitdiff
path: root/src/fluxbox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r--src/fluxbox.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index 9625465..99dfff6 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.cc
@@ -1297,12 +1297,12 @@ void Fluxbox::update(FbTk::Subject *changedsub) {
1297 1297
1298 // This is where we revert focus on window close 1298 // This is where we revert focus on window close
1299 // NOWHERE ELSE!!! 1299 // NOWHERE ELSE!!!
1300 if (FocusControl::focusedWindow() == &client) 1300 if (FocusControl::focusedWindow() == &client) {
1301 FocusControl::unfocusWindow(client); 1301 FocusControl::unfocusWindow(client);
1302 1302 // make sure nothing else uses this window before focus reverts
1303 // failed to revert focus?
1304 if (FocusControl::focusedWindow() == &client)
1305 FocusControl::setFocusedWindow(0); 1303 FocusControl::setFocusedWindow(0);
1304 } else if (!FocusControl::focusedWindow() && client.isWaitingFocus())
1305 FocusControl::revertFocus(screen);
1306 } 1306 }
1307} 1307}
1308 1308