diff options
Diffstat (limited to 'src/fluxbox.cc')
-rw-r--r-- | src/fluxbox.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/fluxbox.cc b/src/fluxbox.cc index b20a4d9..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; |
@@ -844,6 +844,7 @@ void Fluxbox::handleEvent(XEvent * const e) { | |||
844 | 844 | ||
845 | #ifdef HAVE_RANDR | 845 | #ifdef HAVE_RANDR |
846 | if (e->type == m_randr_event_type) { | 846 | if (e->type == m_randr_event_type) { |
847 | XRRUpdateConfiguration(e); | ||
847 | // update root window size in screen | 848 | // update root window size in screen |
848 | BScreen *scr = searchScreen(e->xany.window); | 849 | BScreen *scr = searchScreen(e->xany.window); |
849 | if (scr != 0) | 850 | if (scr != 0) |