aboutsummaryrefslogtreecommitdiff
path: root/src/FocusControl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FocusControl.cc')
-rw-r--r--src/FocusControl.cc18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/FocusControl.cc b/src/FocusControl.cc
index e494d8f..e16cbec 100644
--- a/src/FocusControl.cc
+++ b/src/FocusControl.cc
@@ -399,9 +399,6 @@ void FocusControl::shutdown() {
399 * last_focused is set to something if we want to make use of the 399 * last_focused is set to something if we want to make use of the
400 * previously focused window (it must NOT be set focused now, it 400 * previously focused window (it must NOT be set focused now, it
401 * is probably dying). 401 * is probably dying).
402 *
403 * ignore_event means that it ignores the given event until
404 * it gets a focusIn
405 */ 402 */
406void FocusControl::revertFocus(BScreen &screen) { 403void FocusControl::revertFocus(BScreen &screen) {
407 if (s_reverting) 404 if (s_reverting)
@@ -455,21 +452,6 @@ void FocusControl::unfocusWindow(WinClient &client,
455 452
456 FluxboxWindow *fbwin = client.fbwindow(); 453 FluxboxWindow *fbwin = client.fbwindow();
457 if (fbwin == 0) 454 if (fbwin == 0)
458 unfocus_frame = false;
459
460 WinClient *trans_parent = client.transientFor();
461 while (trans_parent) {
462 if (trans_parent->fbwindow() && // can't focus if no fbwin
463 (!unfocus_frame || trans_parent->fbwindow() != fbwin) && // can't be this window
464 trans_parent->fbwindow()->isVisible() &&
465 trans_parent->fbwindow()->setCurrentClient(*trans_parent,
466 s_focused_window == &client)) {
467 return;
468 }
469 trans_parent = trans_parent->transientFor();
470 }
471
472 if (fbwin == 0)
473 return; // nothing more we can do 455 return; // nothing more we can do
474 456
475 BScreen &screen = fbwin->screen(); 457 BScreen &screen = fbwin->screen();