aboutsummaryrefslogtreecommitdiff
path: root/src/FocusControl.cc
diff options
context:
space:
mode:
authormarkt <markt>2006-07-06 04:10:34 (GMT)
committermarkt <markt>2006-07-06 04:10:34 (GMT)
commit84ca1f2e2f82b66b417b8e25295e37cb07985f3d (patch)
tree846093f50a65a5a1af8fd1563e66e4d4560f1d44 /src/FocusControl.cc
parentb407e121badd48b0fd3fdfe2e47a5ac3bfa7f047 (diff)
downloadfluxbox-84ca1f2e2f82b66b417b8e25295e37cb07985f3d.zip
fluxbox-84ca1f2e2f82b66b417b8e25295e37cb07985f3d.tar.bz2
re-fixing the focus after fixing the crash bug
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