After looking for items/submenus, always update the closed state at least once before mouse polling. Otherwise the click to open sticky setting would sometimes not get evaluated until after the mouse cursor had already moved outside of the click to open rect. Fixes ticket #3267.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36443 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent
2010-04-23 23:12:43 +00:00
parent 7e6614d10b
commit 8e23974bbe
+3
View File
@@ -1654,6 +1654,9 @@ BMenu::_Track(int* action, long start)
} }
UnlockLooper(); UnlockLooper();
if (releasedOnce)
_UpdateStateClose(item, location, buttons);
if (fState != MENU_STATE_CLOSED) { if (fState != MENU_STATE_CLOSED) {
bigtime_t snoozeAmount = 50000; bigtime_t snoozeAmount = 50000;