aboutsummaryrefslogtreecommitdiff
path: root/src/FocusControl.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-03-06 21:23:18 (GMT)
committermarkt <markt>2007-03-06 21:23:18 (GMT)
commit82f02f44c590e6eb04b2b6211bc602cd75210524 (patch)
treea76b4d37f0e9cf23aa1182d133a001b3b868d88d /src/FocusControl.cc
parente407bb80b62205cd647082bee4658327b962f24b (diff)
downloadfluxbox-82f02f44c590e6eb04b2b6211bc602cd75210524.zip
fluxbox-82f02f44c590e6eb04b2b6211bc602cd75210524.tar.bz2
I seem to have forgotten this in the last patch
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();