From 538b630ff217433e6c327980e693d68854010305 Mon Sep 17 00:00:00 2001 From: markt Date: Sun, 23 Jul 2006 13:30:46 +0000 Subject: forgot about the menu --- src/fluxbox.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fluxbox.cc b/src/fluxbox.cc index abe43d2..2cb599b 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc @@ -679,13 +679,12 @@ void Fluxbox::handleEvent(XEvent * const e) { 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 @@ void Fluxbox::timed_reconfigure() { } void Fluxbox::revert_focus() { - if (m_revert_screen && !FocusControl::focusedWindow()) + if (m_revert_screen && !FocusControl::focusedWindow() && + !FbTk::Menu::focused()) FocusControl::revertFocus(*m_revert_screen); } -- cgit v0.11.2