mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 02:04:20 +00:00
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:
parent
d33f0c0c6a
commit
77cdf8bbea
2 changed files with 9 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue