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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user