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

@ -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;