From 7a7cc128b9a7bef0ed58acc2ff61cde5e64fda3f Mon Sep 17 00:00:00 2001 From: espectador Date: Wed, 9 Oct 2013 19:45:55 +0000 Subject: [PATCH] Fix last commit. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37215 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 4 ++++ Source/NSWindow.m | 11 +++++++---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index a524a34cb..0d69683cd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-10-09 German Arias + + * NSWindow.m (-sendEvent:): Fix last commit. + 2013-10-09 German Arias * NSWindow.m (-sendEvent:): Only send events mouse entered if the diff --git a/Source/NSWindow.m b/Source/NSWindow.m index bf54670e2..85f2bbb65 100644 --- a/Source/NSWindow.m +++ b/Source/NSWindow.m @@ -4056,11 +4056,14 @@ checkCursorRectanglesExited(NSView *theView, NSEvent *theEvent, NSPoint lastPoi break; } - /* Only send the event mouse entered if the - * cursor rectangle is valid. */ - if ([theEvent trackingNumber] && [r isValid]) // It's a mouse entered + if ([theEvent trackingNumber]) // It's a mouse entered { - [c mouseEntered: theEvent]; + /* Only send the event mouse entered if the + * cursor rectangle is valid. */ + if ([r isValid]) + { + [c mouseEntered: theEvent]; + } } else // it is a mouse exited {