aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Window.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 0aa4ec6..3c32d0e 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -991,11 +991,14 @@ bool FluxboxWindow::setCurrentClient(WinClient &client, bool setinput) {
991 if (!button) 991 if (!button)
992 return false; 992 return false;
993 993
994 if (!client.acceptsFocus())
995 setinput = false; // don't try
996
994 WinClient *old = m_client; 997 WinClient *old = m_client;
995 m_client = &client; 998 m_client = &client;
996 999
997 bool ret = setinput && focus(); 1000 bool ret = setinput && focus();
998 if (setinput) { 1001 if (setinput && old->acceptsFocus()) {
999 m_client = old; 1002 m_client = old;
1000 return ret; 1003 return ret;
1001 } 1004 }