aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc4
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