all repos — fluxbox @ 538b630ff217433e6c327980e693d68854010305

custom fork of the fluxbox windowmanager

forgot about the menu
markt markt
commit

538b630ff217433e6c327980e693d68854010305

parent

be2f40a10d9c11a56c0c53307be5557a127027e9

1 files changed, 3 insertions(+), 3 deletions(-)

jump to
M src/fluxbox.ccsrc/fluxbox.cc

@@ -679,13 +679,12 @@ FbTk::Menu::focused() != 0 &&

FbTk::Menu::focused()->window() == e->xfocus.window) { // find screen num - BScreen *screen = 0; ScreenList::iterator it = m_screen_list.begin(); ScreenList::iterator it_end = m_screen_list.end(); for (; it != it_end; ++it) { if ( (*it)->screenNumber() == FbTk::Menu::focused()->fbwindow().screenNumber()) { - screen = (*it); + FocusControl::revertFocus(**it); break; // found the screen, no more search } }

@@ -1786,7 +1785,8 @@ m_reconfigure_wait = m_reread_menu_wait = false;

} void Fluxbox::revert_focus() { - if (m_revert_screen && !FocusControl::focusedWindow()) + if (m_revert_screen && !FocusControl::focusedWindow() && + !FbTk::Menu::focused()) FocusControl::revertFocus(*m_revert_screen); }