Apply the same logic of BMenu::_Track() also in BMenuBar::_track():
check if mouse is over a submenu and then if it's over the current menu. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24479 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1607,6 +1607,7 @@ BMenu::_UpdateNavigationArea(BPoint position, BRect& navAreaRectAbove,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
BMenu::_UpdateStateOpenSelect(BMenuItem* item, BPoint position,
|
||||
BRect& navAreaRectAbove, BRect& navAreaRectBelow, bigtime_t& selectedTime,
|
||||
@@ -1615,7 +1616,6 @@ BMenu::_UpdateStateOpenSelect(BMenuItem* item, BPoint position,
|
||||
if (fState == MENU_STATE_CLOSED)
|
||||
return;
|
||||
|
||||
|
||||
if (item != fSelected) {
|
||||
if (navigationAreaTime == 0)
|
||||
navigationAreaTime = system_time();
|
||||
|
||||
Reference in New Issue
Block a user