From f96885c63ed532a3ceb54a5250672b65836ffd45 Mon Sep 17 00:00:00 2001 From: espectador Date: Wed, 9 Oct 2013 18:52:39 +0000 Subject: [PATCH] Set _lastPoint after update the cursor in NSWindow. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37213 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 4 ++++ Source/NSWindow.m | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 2eef3b930..9ca7f8170 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-10-09 German Arias + + * NSWindow.m (-sendEvent:): Set _lastPoint after update the cursor. + 2013-10-08 Eric Wasylishen * Source/GSThemeDrawing.m: diff --git a/Source/NSWindow.m b/Source/NSWindow.m index 046efc41d..352378f3d 100644 --- a/Source/NSWindow.m +++ b/Source/NSWindow.m @@ -4064,6 +4064,10 @@ checkCursorRectanglesExited(NSView *theView, NSEvent *theEvent, NSPoint lastPoi { [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;