aboutsummaryrefslogtreecommitdiff
path: root/src/fluxbox.cc
diff options
context:
space:
mode:
authorMark Tiefenbruck <mark@fluxbox.org>2008-01-31 14:37:52 (GMT)
committerMark Tiefenbruck <mark@fluxbox.org>2008-01-31 14:37:52 (GMT)
commit39d4d0a01056178ec01977522ac99e589b15e4a8 (patch)
treeef73a5b0ea4a578caab34dc0629a8168e6974106 /src/fluxbox.cc
parent24dc811fdae21fd8b7572d61e92b5a61c285b96f (diff)
downloadfluxbox_pavel-39d4d0a01056178ec01977522ac99e589b15e4a8.zip
fluxbox_pavel-39d4d0a01056178ec01977522ac99e589b15e4a8.tar.bz2
fix focus revert when closing menu
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;