aboutsummaryrefslogtreecommitdiff
path: root/src/fluxbox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r--src/fluxbox.cc6
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;