In sticky mode, menus should only invoke the selected item after the mouse is released (instead of immediately on MouseDown).

I hope this is the correct fix.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19349 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Waldemar Kornewald
2006-11-21 16:01:11 +00:00
parent e0fcf72ae0
commit b26e9fb499
+1 -1
View File
@@ -1336,7 +1336,7 @@ BMenu::_track(int *action, bigtime_t trackTime, long start)
UnlockLooper();
if (buttons != 0 && IsStickyMode())
fState = MENU_STATE_CLOSED;
SetStickyMode(false);
else if (buttons == 0 && !IsStickyMode()) {
if (system_time() < trackTime + 1000000
|| (fExtraRect != NULL && fExtraRect->Contains(location)))