fix focus revert when closing menu

This commit is contained in:
Mark Tiefenbruck 2008-01-31 06:37:52 -08:00
parent 24dc811fda
commit 39d4d0a010

View file

@ -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;