From 176865bf931d4c2b2db4ce31700b5106d571cb61 Mon Sep 17 00:00:00 2001 From: Mark Tiefenbruck Date: Tue, 18 Dec 2007 23:22:48 -0800 Subject: always focus a client that gets raised in the focused window --- src/Window.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Window.cc b/src/Window.cc index fc710dc..7c36329 100644 --- a/src/Window.cc +++ b/src/Window.cc @@ -1016,10 +1016,16 @@ bool FluxboxWindow::setCurrentClient(WinClient &client, bool setinput) { frame().setLabelButtonFocus(*button); frame().setShapingClient(&client, false); + setinput = setinput || m_focused && !screen().focusControl().isCycling(); bool ret = setinput && focus(); - if (setinput) + if (setinput) { // restore old client until focus event comes m_client = old; + if (!ret && old) { + old->raise(); + titleSig().notify(); + } + } return ret; } -- cgit v0.11.2