diff options
author | markt <markt> | 2007-03-28 18:10:12 (GMT) |
---|---|---|
committer | markt <markt> | 2007-03-28 18:10:12 (GMT) |
commit | 9ca59a0ee2ccd59903d42239dab6de1666e390b2 (patch) | |
tree | 80e699cdbfc633bf5a763e8a3a28343f5fbf8290 | |
parent | 358645d443e491bbbbd3e23e9530f348eeba6a90 (diff) | |
download | fluxbox-9ca59a0ee2ccd59903d42239dab6de1666e390b2.zip fluxbox-9ca59a0ee2ccd59903d42239dab6de1666e390b2.tar.bz2 |
little fix for restoring tabbed windows on restart
-rw-r--r-- | src/Window.cc | 7 |
1 files 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) { | |||
669 | setCurrentClient(client); | 669 | setCurrentClient(client); |
670 | FocusControl::setFocusedWindow(&client); | 670 | FocusControl::setFocusedWindow(&client); |
671 | } else { | 671 | } else { |
672 | WinClient *last = screen().focusControl().lastFocusedWindow(*this); | 672 | if (!focused_win) |
673 | if (last) | 673 | focused_win = screen().focusControl().lastFocusedWindow(*this); |
674 | setCurrentClient(*last, false); | 674 | if (focused_win) |
675 | setCurrentClient(*focused_win, false); | ||
675 | } | 676 | } |
676 | frame().reconfigure(); | 677 | frame().reconfigure(); |
677 | } | 678 | } |