From 41eae48eb48d7ec0a35f9d009e6b02ea8f4cae0e Mon Sep 17 00:00:00 2001 From: fluxgen Date: Fri, 16 Jan 2004 11:38:30 +0000 Subject: oops --- src/fluxbox.cc | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/src/fluxbox.cc b/src/fluxbox.cc index 9bba564..c37e4b8 100644 --- a/src/fluxbox.cc +++ b/src/fluxbox.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: fluxbox.cc,v 1.223 2004/01/16 11:29:12 fluxgen Exp $ +// $Id: fluxbox.cc,v 1.224 2004/01/16 11:38:30 fluxgen Exp $ #include "fluxbox.hh" @@ -759,20 +759,19 @@ void Fluxbox::handleEvent(XEvent * const e) { if (e->type == FocusOut && 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); - break; // found the screen, no more search - } + // 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); + break; // found the screen, no more search } - if (screen != 0) - revertFocus(*screen); } + if (screen != 0) + revertFocus(*screen); } // try FbTk::EventHandler first -- cgit v0.11.2