Author: anevilyak Date: 2010-04-24 01:12:43 +0200 (Sat, 24 Apr 2010) New Revision: 36443 Changeset: http://dev.haiku-os.org/changeset/36443/haiku Ticket: http://dev.haiku-os.org/ticket/3267 Modified: haiku/trunk/src/kits/interface/Menu.cpp Log: 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. Modified: haiku/trunk/src/kits/interface/Menu.cpp =================================================================== --- haiku/trunk/src/kits/interface/Menu.cpp 2010-04-23 21:03:11 UTC (rev 36442) +++ haiku/trunk/src/kits/interface/Menu.cpp 2010-04-23 23:12:43 UTC (rev 36443) @@ -1654,6 +1654,9 @@ } UnlockLooper(); + + if (releasedOnce) + _UpdateStateClose(item, location, buttons); if (fState != MENU_STATE_CLOSED) { bigtime_t snoozeAmount = 50000;