mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 21:37:39 +00:00
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:
parent
6c7e20737f
commit
26a36530a1
2 changed files with 11 additions and 4 deletions
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue