aboutsummaryrefslogtreecommitdiff
path: root/src/fluxbox.cc
diff options
context:
space:
mode:
authormarkt <markt>2006-07-20 07:15:59 (GMT)
committermarkt <markt>2006-07-20 07:15:59 (GMT)
commitf9ade8947c08a7f1a4485b44da2403a55a3c04e1 (patch)
tree793620785e0cae212af273681529415b57a5c8cf /src/fluxbox.cc
parentf4d1af12083863f1aa63c88e3eb55a9317758fc1 (diff)
downloadfluxbox_pavel-f9ade8947c08a7f1a4485b44da2403a55a3c04e1.zip
fluxbox_pavel-f9ade8947c08a7f1a4485b44da2403a55a3c04e1.tar.bz2
properly revert focus when two windows close at the same time
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