It's a good idea to snooze AFTER we've checked the possible exit conditions
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17189 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -43,6 +43,7 @@ public:
|
|||||||
menu_info BMenu::sMenuInfo;
|
menu_info BMenu::sMenuInfo;
|
||||||
bool BMenu::sAltAsCommandKey;
|
bool BMenu::sAltAsCommandKey;
|
||||||
|
|
||||||
|
|
||||||
static property_info
|
static property_info
|
||||||
sPropList[] = {
|
sPropList[] = {
|
||||||
{ "Enabled", { B_GET_PROPERTY, 0 },
|
{ "Enabled", { B_GET_PROPERTY, 0 },
|
||||||
@@ -1240,9 +1241,7 @@ BMenu::_track(int *action, bigtime_t trackTime, long start)
|
|||||||
|
|
||||||
if (locked)
|
if (locked)
|
||||||
UnlockLooper();
|
UnlockLooper();
|
||||||
|
|
||||||
snooze(snoozeAmount);
|
|
||||||
|
|
||||||
if (buttons != 0 && IsStickyMode()) {
|
if (buttons != 0 && IsStickyMode()) {
|
||||||
fState = MENU_ACT_CLOSE;
|
fState = MENU_ACT_CLOSE;
|
||||||
break;
|
break;
|
||||||
@@ -1255,6 +1254,8 @@ BMenu::_track(int *action, bigtime_t trackTime, long start)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
snooze(snoozeAmount);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (action != NULL)
|
if (action != NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user