From 2c4e1f9a024433396f17ea5f3ef3fda46e0d8edd Mon Sep 17 00:00:00 2001 From: markt Date: Sun, 4 Nov 2007 23:27:51 +0000 Subject: RevertToParent instead of RevertToPointerRoot on window close, as sometimes keys would go to the window under the mouse before a new window was focused --- src/Window.cc | 5 ++--- 1 file 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() { bool ret = false; - if (m_client->getFocusMode() == WinClient::F_LOCALLYACTIVE || - m_client->getFocusMode() == WinClient::F_PASSIVE) { + if (m_client->acceptsFocus()) { - m_client->setInputFocus(RevertToPointerRoot, CurrentTime); + m_client->setInputFocus(RevertToParent, CurrentTime); FbTk::App *app = FbTk::App::instance(); -- cgit v0.11.2