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() &&
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue