Fix last commit.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37215 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Germán Arias 2013-10-09 19:45:55 +00:00
parent 123703e8e1
commit c713f8cb04
2 changed files with 11 additions and 4 deletions

View file

@ -1,3 +1,7 @@
2013-10-09 German Arias <germanandre@gmx.es>
* NSWindow.m (-sendEvent:): Fix last commit.
2013-10-09 German Arias <germanandre@gmx.es>
* NSWindow.m (-sendEvent:): Only send events mouse entered if the

View file

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