If a submenu was opened, the parent menu tracking loop would continue calling

_HitTestItems() even if the user didn't move the mouse.
This commit is contained in:
Stefano Ceccherini
2013-04-12 23:07:47 +02:00
parent a53db18937
commit 3ef837fd40
+2 -1
View File
@@ -1729,7 +1729,8 @@ BMenu::_Track(int* action, long start)
GetMouse(&newLocation, &newButtons, true);
UnlockLooper();
} while (newLocation == location && newButtons == buttons
&& !(item && item->Submenu() != NULL)
&& !(item != NULL && item->Submenu() != NULL
&& item->Submenu()->Window() == NULL)
&& fState == MENU_STATE_TRACKING);
if (newLocation != location || newButtons != buttons) {