From 93d8310c0c51fe1edcdfa5240f724ab6306ce92a Mon Sep 17 00:00:00 2001 From: markt Date: Tue, 6 Feb 2007 19:05:59 +0000 Subject: wrong client was raised when attaching an unfocused window to the focused window --- ChangeLog | 2 ++ src/Window.cc | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 201a575..4a745e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,8 @@ (Format: Year/Month/Day) Changes for 1.0rc3: *07/02/06: + * Wrong window was being raised when attaching an unfocused window (Mark) + Window.cc * Make selecting `close' from the workspace menu close the correct client, rather than the active tab in the window -- selecting `close' from right clicking on a tab is still wrong, as there are complications (Mark) 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) { FocusControl::setFocusedWindow(&client); } else if (focused_win) setCurrentClient(*focused_win, false); + else + // reparenting puts the new client on top, but the old client is keeping + // the focus, so we raise it + m_client->raise(); frame().reconfigure(); } -- cgit v0.11.2