aboutsummaryrefslogtreecommitdiff
path: root/src/FocusControl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FocusControl.cc')
-rw-r--r--src/FocusControl.cc14
1 files changed, 2 insertions, 12 deletions
diff --git a/src/FocusControl.cc b/src/FocusControl.cc
index f0d1387..339541c 100644
--- a/src/FocusControl.cc
+++ b/src/FocusControl.cc
@@ -458,18 +458,8 @@ void FocusControl::setFocusedWindow(WinClient *client) {
458#endif // DEBUG 458#endif // DEBUG
459 459
460 // Update the old focused client to non focus 460 // Update the old focused client to non focus
461 // check if s_focused_window is valid 461 if (s_focused_fbwindow)
462 if (s_focused_window != 0 && 462 s_focused_fbwindow->setFocusFlag(false);
463 Fluxbox::instance()->validateClient(s_focused_window)) {
464
465 if (!client && s_focused_fbwindow)
466 s_focused_fbwindow->setFocusFlag(false);
467
468 } else {
469 s_focused_window = 0;
470 s_focused_fbwindow = 0;
471 }
472
473 463
474 if (client && client->fbwindow() && !client->fbwindow()->isIconic()) { 464 if (client && client->fbwindow() && !client->fbwindow()->isIconic()) {
475 // screen should be ok 465 // screen should be ok