always focus a client that gets raised in the focused window

This commit is contained in:
Mark Tiefenbruck 2007-12-18 23:22:48 -08:00
parent 8f66fe372a
commit 176865bf93

View file

@ -1016,10 +1016,16 @@ bool FluxboxWindow::setCurrentClient(WinClient &client, bool setinput) {
frame().setLabelButtonFocus(*button); frame().setLabelButtonFocus(*button);
frame().setShapingClient(&client, false); frame().setShapingClient(&client, false);
setinput = setinput || m_focused && !screen().focusControl().isCycling();
bool ret = setinput && focus(); bool ret = setinput && focus();
if (setinput) if (setinput) {
// restore old client until focus event comes // restore old client until focus event comes
m_client = old; m_client = old;
if (!ret && old) {
old->raise();
titleSig().notify();
}
}
return ret; return ret;
} }