diff options
author | Mark Tiefenbruck <mark@fluxbox.org> | 2008-01-31 14:37:52 (GMT) |
---|---|---|
committer | Mark Tiefenbruck <mark@fluxbox.org> | 2008-01-31 14:37:52 (GMT) |
commit | 39d4d0a01056178ec01977522ac99e589b15e4a8 (patch) | |
tree | ef73a5b0ea4a578caab34dc0629a8168e6974106 | |
parent | 24dc811fdae21fd8b7572d61e92b5a61c285b96f (diff) | |
download | fluxbox_pavel-39d4d0a01056178ec01977522ac99e589b15e4a8.zip fluxbox_pavel-39d4d0a01056178ec01977522ac99e589b15e4a8.tar.bz2 |
fix focus revert when closing menu
-rw-r--r-- | src/fluxbox.cc | 6 |
1 files 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) { | |||
811 | if (FbTk::Menu::focused() && | 811 | if (FbTk::Menu::focused() && |
812 | FbTk::Menu::focused()->window() == e->xfocus.window) { | 812 | FbTk::Menu::focused()->window() == e->xfocus.window) { |
813 | m_keyscreen = findScreen(FbTk::Menu::focused()->screenNumber()); | 813 | m_keyscreen = findScreen(FbTk::Menu::focused()->screenNumber()); |
814 | FocusControl::setFocusedWindow(0); | ||
814 | break; | 815 | break; |
815 | } | 816 | } |
816 | 817 | ||
817 | WinClient *winclient = searchWindow(e->xfocus.window); | 818 | WinClient *winclient = searchWindow(e->xfocus.window); |
818 | if (!winclient) | 819 | if (winclient) |
819 | break; | 820 | m_keyscreen = &winclient->screen(); |
820 | m_keyscreen = &winclient->screen(); | ||
821 | FocusControl::setFocusedWindow(winclient); | 821 | FocusControl::setFocusedWindow(winclient); |
822 | 822 | ||
823 | } break; | 823 | } break; |