From 82f02f44c590e6eb04b2b6211bc602cd75210524 Mon Sep 17 00:00:00 2001 From: markt Date: Tue, 6 Mar 2007 21:23:18 +0000 Subject: I seem to have forgotten this in the last patch --- src/FocusControl.cc | 18 ------------------ src/Window.cc | 6 ------ 2 files changed, 24 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() { * last_focused is set to something if we want to make use of the * previously focused window (it must NOT be set focused now, it * is probably dying). - * - * ignore_event means that it ignores the given event until - * it gets a focusIn */ void FocusControl::revertFocus(BScreen &screen) { if (s_reverting) @@ -455,21 +452,6 @@ void FocusControl::unfocusWindow(WinClient &client, FluxboxWindow *fbwin = client.fbwindow(); if (fbwin == 0) - unfocus_frame = false; - - WinClient *trans_parent = client.transientFor(); - while (trans_parent) { - if (trans_parent->fbwindow() && // can't focus if no fbwin - (!unfocus_frame || trans_parent->fbwindow() != fbwin) && // can't be this window - trans_parent->fbwindow()->isVisible() && - trans_parent->fbwindow()->setCurrentClient(*trans_parent, - s_focused_window == &client)) { - return; - } - trans_parent = trans_parent->transientFor(); - } - - if (fbwin == 0) return; // nothing more we can do BScreen &screen = fbwin->screen(); diff --git a/src/Window.cc b/src/Window.cc index 5b10058..e471d6e 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -204,9 +204,6 @@ void tempRaiseFluxboxWindow(FluxboxWindow &win) { if (win.oplock) return; win.oplock = true; - if (!win.winClient().transientList().empty()) - win.screen().layerManager().lock(); - if (!win.isIconic()) { // don't update netizen, as it is only temporary win.layerItem().tempRaise(); @@ -222,9 +219,6 @@ void tempRaiseFluxboxWindow(FluxboxWindow &win) { } win.oplock = false; - if (!win.winClient().transientList().empty()) - win.screen().layerManager().unlock(); - } class SetClientCmd:public FbTk::Command { -- cgit v0.11.2