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:
Stefano Ceccherini
2008-03-19 20:59:55 +00:00
parent 4a46d818c9
commit 47ed33e09b
2 changed files with 17 additions and 17 deletions
+1 -1
View File
@@ -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();