aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 8b92999..5c27c45 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -1418,11 +1418,14 @@ bool FluxboxWindow::focus() {
1418#ifdef DEBUG 1418#ifdef DEBUG
1419 cerr<<__FUNCTION__<<": transient 0x"<<(*it)<<endl; 1419 cerr<<__FUNCTION__<<": transient 0x"<<(*it)<<endl;
1420#endif // DEBUG 1420#endif // DEBUG
1421 if ((*it)->isModal()) 1421 if ((*it)->isStateModal())
1422 return (*it)->focus(); 1422 return (*it)->focus();
1423 } 1423 }
1424 } 1424 }
1425 1425
1426 if (m_client->isModal())
1427 return false;
1428
1426 bool ret = false; 1429 bool ret = false;
1427 1430
1428 if (m_client->getFocusMode() == WinClient::F_LOCALLYACTIVE || 1431 if (m_client->getFocusMode() == WinClient::F_LOCALLYACTIVE ||