aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc8
1 files changed, 7 insertions, 1 deletions
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) {
1016 frame().setLabelButtonFocus(*button); 1016 frame().setLabelButtonFocus(*button);
1017 frame().setShapingClient(&client, false); 1017 frame().setShapingClient(&client, false);
1018 1018
1019 setinput = setinput || m_focused && !screen().focusControl().isCycling();
1019 bool ret = setinput && focus(); 1020 bool ret = setinput && focus();
1020 if (setinput) 1021 if (setinput) {
1021 // restore old client until focus event comes 1022 // restore old client until focus event comes
1022 m_client = old; 1023 m_client = old;
1024 if (!ret && old) {
1025 old->raise();
1026 titleSig().notify();
1027 }
1028 }
1023 return ret; 1029 return ret;
1024} 1030}
1025 1031