Set _lastPoint only for mouse entered events.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37398 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Germán Arias 2013-11-22 19:21:02 +00:00
parent 6c7e20737f
commit 26a36530a1
2 changed files with 11 additions and 4 deletions

View file

@ -1,3 +1,9 @@
2013-11-22 German Arias <germanandre@gmx.es>
* NSWindow.m (-sendEvent:): Set _lastPoint only for mouse entered
events. If not, in some cases (i.e. display contextual menus), this
sets the wrong point for the event.
2013-11-08 Riccardo Mottola <rm@gnu.org>
* Source/NSBitmapImageRep+GIF.m:

View file

@ -4063,16 +4063,17 @@ checkCursorRectanglesExited(NSView *theView, NSEvent *theEvent, NSPoint lastPoi
if ([r isValid])
{
[c mouseEntered: theEvent];
/* This could seems redundant, but ensure the correct
* value to use in events mouse moved. And avoids strange
* issues with cursor. */
_lastPoint = [theEvent locationInWindow];
}
}
else // it is a mouse exited
{
[c mouseExited: theEvent];
}
/* This could seems redundant, but ensure the correct value to use
* in events mouse moved. And avoids strange issues with cursor. */
_lastPoint = [theEvent locationInWindow];
}
break;