Release mouse before invoking menu action

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32307 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Eric Wasylishen 2011-02-22 22:22:01 +00:00
parent d33f0c0c6a
commit 77cdf8bbea
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2011-02-22 Eric Wasylishen <ewasylishen@gmail.com>
* Source/NSMenuView.m (-_trackWithEvent:): Quick fix for recent
menu tracking changes: release the mouse before invoking
the menu's action.
2011-02-22 Eric Wasylishen <ewasylishen@gmail.com>
* Source/externs.m:

View file

@ -1773,6 +1773,9 @@ static NSMapTable *viewInfo = 0;
return YES;
}
// Before executing the action, uncapture the mouse
[_window _releaseMouse: self];
if([self _executeItemAtIndex: indexOfActionToExecute
removeSubmenu: subMenusNeedRemoving] == NO)
{