fix focus revert when closing menu
This commit is contained in:
parent
24dc811fda
commit
39d4d0a010
1 changed files with 3 additions and 3 deletions
|
@ -811,13 +811,13 @@ void Fluxbox::handleEvent(XEvent * const e) {
|
||||||
if (FbTk::Menu::focused() &&
|
if (FbTk::Menu::focused() &&
|
||||||
FbTk::Menu::focused()->window() == e->xfocus.window) {
|
FbTk::Menu::focused()->window() == e->xfocus.window) {
|
||||||
m_keyscreen = findScreen(FbTk::Menu::focused()->screenNumber());
|
m_keyscreen = findScreen(FbTk::Menu::focused()->screenNumber());
|
||||||
|
FocusControl::setFocusedWindow(0);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
WinClient *winclient = searchWindow(e->xfocus.window);
|
WinClient *winclient = searchWindow(e->xfocus.window);
|
||||||
if (!winclient)
|
if (winclient)
|
||||||
break;
|
m_keyscreen = &winclient->screen();
|
||||||
m_keyscreen = &winclient->screen();
|
|
||||||
FocusControl::setFocusedWindow(winclient);
|
FocusControl::setFocusedWindow(winclient);
|
||||||
|
|
||||||
} break;
|
} break;
|
||||||
|
|
Loading…
Reference in a new issue