diff options
author | markt <markt> | 2006-07-20 03:25:28 (GMT) |
---|---|---|
committer | markt <markt> | 2006-07-20 03:25:28 (GMT) |
commit | f4d1af12083863f1aa63c88e3eb55a9317758fc1 (patch) | |
tree | 77bc2a47dd8f7d2df24afeae506452ab535746ae /src/Window.cc | |
parent | a736f12ac58ec8e60b01ee38dc244b6850d87e21 (diff) | |
download | fluxbox-f4d1af12083863f1aa63c88e3eb55a9317758fc1.zip fluxbox-f4d1af12083863f1aa63c88e3eb55a9317758fc1.tar.bz2 |
keep tabs in same order on restart (except some extremely unlikely cases)
Diffstat (limited to 'src/Window.cc')
-rw-r--r-- | src/Window.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Window.cc b/src/Window.cc index f9581ed..2bb19a2 100644 --- a/src/Window.cc +++ b/src/Window.cc | |||
@@ -628,6 +628,7 @@ void FluxboxWindow::attachClient(WinClient &client, int x, int y) { | |||
628 | WinClient *was_focused = 0; | 628 | WinClient *was_focused = 0; |
629 | WinClient *focused_win = FocusControl::focusedWindow(); | 629 | WinClient *focused_win = FocusControl::focusedWindow(); |
630 | 630 | ||
631 | WinClient *other = m_screen.findGroupLeft(client); | ||
631 | // get the current window on the end of our client list | 632 | // get the current window on the end of our client list |
632 | Window leftwin = None; | 633 | Window leftwin = None; |
633 | if (!clientList().empty()) | 634 | if (!clientList().empty()) |
@@ -691,6 +692,9 @@ void FluxboxWindow::attachClient(WinClient &client, int x, int y) { | |||
691 | 692 | ||
692 | client.saveBlackboxAttribs(m_blackbox_attrib); | 693 | client.saveBlackboxAttribs(m_blackbox_attrib); |
693 | m_clientlist.push_back(&client); | 694 | m_clientlist.push_back(&client); |
695 | |||
696 | if (other && other->fbwindow() == this) | ||
697 | moveClientRightOf(client, *other); | ||
694 | } | 698 | } |
695 | 699 | ||
696 | // make sure that the state etc etc is updated for the new client | 700 | // make sure that the state etc etc is updated for the new client |