all repos — fluxbox @ 176865bf931d4c2b2db4ce31700b5106d571cb61

custom fork of the fluxbox windowmanager

always focus a client that gets raised in the focused window
Mark Tiefenbruck mark@fluxbox.org
commit

176865bf931d4c2b2db4ce31700b5106d571cb61

parent

8f66fe372a7ab1e6b12edd885ef648b2b02485ae

1 files changed, 7 insertions(+), 1 deletions(-)

jump to
M src/Window.ccsrc/Window.cc

@@ -1016,10 +1016,16 @@ // frame focused doesn't necessarily mean input focused

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; }