From 39d4d0a01056178ec01977522ac99e589b15e4a8 Mon Sep 17 00:00:00 2001 From: Mark Tiefenbruck Date: Thu, 31 Jan 2008 06:37:52 -0800 Subject: fix focus revert when closing menu --- src/fluxbox.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fluxbox.cc b/src/fluxbox.cc index 9775b9d..a1896e9 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc @@ -811,13 +811,13 @@ void Fluxbox::handleEvent(XEvent * const e) { if (FbTk::Menu::focused() && FbTk::Menu::focused()->window() == e->xfocus.window) { m_keyscreen = findScreen(FbTk::Menu::focused()->screenNumber()); + FocusControl::setFocusedWindow(0); break; } WinClient *winclient = searchWindow(e->xfocus.window); - if (!winclient) - break; - m_keyscreen = &winclient->screen(); + if (winclient) + m_keyscreen = &winclient->screen(); FocusControl::setFocusedWindow(winclient); } break; -- cgit v0.11.2