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:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user