If there's a opened menu, the window should "eat" the B_MOUSE_DOWN

message. This fixes bug #582 and now menus behave like on beos (or 
should, at least)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20799 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini
2007-04-24 21:00:20 +00:00
parent 3c82cb484e
commit 8860ba90e6
+3 -1
View File
@@ -1010,8 +1010,10 @@ FrameMoved(origin);
// Close an eventually opened menu, unless the target is the menu itself
BMenu *menu = dynamic_cast<BMenu *>(fFocus);
if (menu != NULL && menu != view)
if (menu != NULL && menu != view && menu->State() != MENU_STATE_CLOSED) {
menu->QuitTracking();
return;
}
if (view != NULL) {
BPoint where;