diff options
author | markt <markt> | 2007-02-06 19:05:59 (GMT) |
---|---|---|
committer | markt <markt> | 2007-02-06 19:05:59 (GMT) |
commit | 93d8310c0c51fe1edcdfa5240f724ab6306ce92a (patch) | |
tree | 52460913c58c6d28227adf7f5b7bf3b2671dd439 /src/Window.cc | |
parent | 07ea9ec4b4a2c1252c64dc34438c4bdeb5e3331b (diff) | |
download | fluxbox_pavel-93d8310c0c51fe1edcdfa5240f724ab6306ce92a.zip fluxbox_pavel-93d8310c0c51fe1edcdfa5240f724ab6306ce92a.tar.bz2 |
wrong client was raised when attaching an unfocused window to the focused window
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 c505edc..56b1e09 100644 --- a/src/Window.cc +++ b/src/Window.cc | |||
@@ -676,6 +676,10 @@ void FluxboxWindow::attachClient(WinClient &client, int x, int y) { | |||
676 | FocusControl::setFocusedWindow(&client); | 676 | FocusControl::setFocusedWindow(&client); |
677 | } else if (focused_win) | 677 | } else if (focused_win) |
678 | setCurrentClient(*focused_win, false); | 678 | setCurrentClient(*focused_win, false); |
679 | else | ||
680 | // reparenting puts the new client on top, but the old client is keeping | ||
681 | // the focus, so we raise it | ||
682 | m_client->raise(); | ||
679 | 683 | ||
680 | frame().reconfigure(); | 684 | frame().reconfigure(); |
681 | } | 685 | } |