From b26e9fb499f9e9326f34872f86aabdfd086c837d Mon Sep 17 00:00:00 2001 From: Waldemar Kornewald Date: Tue, 21 Nov 2006 16:01:11 +0000 Subject: [PATCH] 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 --- src/kits/interface/Menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/interface/Menu.cpp b/src/kits/interface/Menu.cpp index 72ad836e0e..f301ea1445 100644 --- a/src/kits/interface/Menu.cpp +++ b/src/kits/interface/Menu.cpp @@ -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)))