From 9ca59a0ee2ccd59903d42239dab6de1666e390b2 Mon Sep 17 00:00:00 2001 From: markt Date: Wed, 28 Mar 2007 18:10:12 +0000 Subject: little fix for restoring tabbed windows on restart --- src/Window.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Window.cc b/src/Window.cc index 41628f2..d5f75e1 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -669,9 +669,10 @@ void FluxboxWindow::attachClient(WinClient &client, int x, int y) { setCurrentClient(client); FocusControl::setFocusedWindow(&client); } else { - WinClient *last = screen().focusControl().lastFocusedWindow(*this); - if (last) - setCurrentClient(*last, false); + if (!focused_win) + focused_win = screen().focusControl().lastFocusedWindow(*this); + if (focused_win) + setCurrentClient(*focused_win, false); } frame().reconfigure(); } -- cgit v0.11.2