aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-06-30 16:54:05 (GMT)
committermarkt <markt>2007-06-30 16:54:05 (GMT)
commit0f9f19344466cf25170750f768815daf3bdfd2ae (patch)
tree65584eade13f0135102e0284b1981c3ee8ba6282 /src/Window.cc
parent8e75ace959d2a5d56d30cb6a06ce895f397c1f19 (diff)
downloadfluxbox-0f9f19344466cf25170750f768815daf3bdfd2ae.zip
fluxbox-0f9f19344466cf25170750f768815daf3bdfd2ae.tar.bz2
fixed implementation of _NET_WM_STATE_MODAL
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 1c839f6..b44f9f7 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -1372,11 +1372,14 @@ bool FluxboxWindow::setInputFocus() {
1372#ifdef DEBUG 1372#ifdef DEBUG
1373 cerr<<__FUNCTION__<<": transient 0x"<<(*it)<<endl; 1373 cerr<<__FUNCTION__<<": transient 0x"<<(*it)<<endl;
1374#endif // DEBUG 1374#endif // DEBUG
1375 if ((*it)->isModal()) 1375 if ((*it)->isStateModal())
1376 return (*it)->focus(); 1376 return (*it)->focus();
1377 } 1377 }
1378 } 1378 }
1379 1379
1380 if (m_client->isModal())
1381 return false;
1382
1380 bool ret = false; 1383 bool ret = false;
1381 1384
1382 if (m_client->getFocusMode() == WinClient::F_LOCALLYACTIVE || 1385 if (m_client->getFocusMode() == WinClient::F_LOCALLYACTIVE ||