aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormarkt <markt>2007-11-04 23:27:51 (GMT)
committermarkt <markt>2007-11-04 23:27:51 (GMT)
commit2c4e1f9a024433396f17ea5f3ef3fda46e0d8edd (patch)
treef5211bd7eed87724bc8d781f3ab74d83f4aca1c5 /src
parent4c72b13a880c9c87ddd195a01d5e884436336451 (diff)
downloadfluxbox-2c4e1f9a024433396f17ea5f3ef3fda46e0d8edd.zip
fluxbox-2c4e1f9a024433396f17ea5f3ef3fda46e0d8edd.tar.bz2
RevertToParent instead of RevertToPointerRoot on window close,
as sometimes keys would go to the window under the mouse before a new window was focused
Diffstat (limited to 'src')
-rw-r--r--src/Window.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Window.cc b/src/Window.cc
index 8e46900..5d9404d 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -1355,10 +1355,9 @@ bool FluxboxWindow::focus() {
1355 1355
1356 bool ret = false; 1356 bool ret = false;
1357 1357
1358 if (m_client->getFocusMode() == WinClient::F_LOCALLYACTIVE || 1358 if (m_client->acceptsFocus()) {
1359 m_client->getFocusMode() == WinClient::F_PASSIVE) {
1360 1359
1361 m_client->setInputFocus(RevertToPointerRoot, CurrentTime); 1360 m_client->setInputFocus(RevertToParent, CurrentTime);
1362 1361
1363 FbTk::App *app = FbTk::App::instance(); 1362 FbTk::App *app = FbTk::App::instance();
1364 1363