From ec20f9f60d8d7e8036d913f9e96463635ec37899 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Mon, 18 Feb 2008 13:24:13 +0000 Subject: [PATCH] reverted r21961. A menu could be closed, if the user clicked (with the menu opened) on a view which uses GetMouse() in a loop (PE, tracker), since it stealed the mousedown message. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24005 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/Window.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/kits/interface/Window.cpp b/src/kits/interface/Window.cpp index e7379edab8..20c13e7daf 100644 --- a/src/kits/interface/Window.cpp +++ b/src/kits/interface/Window.cpp @@ -1058,10 +1058,10 @@ FrameMoved(origin); { BView *view = dynamic_cast(target); - // Close an eventually opened menu, if this click targets the - // preferred handler, and unless the target is the menu itself + // Close an eventually opened menu + // unless the target is the menu itself BMenu *menu = dynamic_cast(fFocus); - if (menu != NULL && menu != view && PreferredHandler() == target + if (menu != NULL && menu != view && menu->State() != MENU_STATE_CLOSED) { menu->QuitTracking(); return;