From de68c88ed8ff8c7a887495a74de004f9da7f56df Mon Sep 17 00:00:00 2001 From: rathnor Date: Wed, 7 May 2003 13:50:41 +0000 Subject: minor focus twiddle --- src/Screen.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Screen.cc b/src/Screen.cc index 2dfe90b..4c5f85e 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Screen.cc,v 1.145 2003/05/07 11:36:43 fluxgen Exp $ +// $Id: Screen.cc,v 1.146 2003/05/07 13:50:41 rathnor Exp $ #include "Screen.hh" @@ -969,10 +969,12 @@ void BScreen::removeWindow(FluxboxWindow *win) { void BScreen::removeClient(WinClient &client) { WinClient *cyc = *cycling_window; + FluxboxWindow *focused = Fluxbox::instance()->getFocusedWindow(); focused_list.remove(&client); if (cyc == &client) { cycling_window = focused_list.end(); - } + } else if (focused && &focused->winClient() == &client) + Fluxbox::instance()->revertFocus(&focused->getScreen()); } FluxboxWindow *BScreen::getIcon(unsigned int index) { -- cgit v0.11.2