mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 22:50:56 +00:00
Send events mouse entered only if the cursor rectangle is valid.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37214 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f96885c63e
commit
1cd93b15a4
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2013-10-09 German Arias <germanandre@gmx.es>
|
||||||
|
|
||||||
|
* NSWindow.m (-sendEvent:): Only send events mouse entered if the
|
||||||
|
cursor rectangles are valid.
|
||||||
|
|
||||||
2013-10-09 German Arias <germanandre@gmx.es>
|
2013-10-09 German Arias <germanandre@gmx.es>
|
||||||
|
|
||||||
* NSWindow.m (-sendEvent:): Set _lastPoint after update the cursor.
|
* NSWindow.m (-sendEvent:): Set _lastPoint after update the cursor.
|
||||||
|
|
|
@ -4056,7 +4056,9 @@ checkCursorRectanglesExited(NSView *theView, NSEvent *theEvent, NSPoint lastPoi
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ([theEvent trackingNumber]) // It's a mouse entered
|
/* Only send the event mouse entered if the
|
||||||
|
* cursor rectangle is valid. */
|
||||||
|
if ([theEvent trackingNumber] && [r isValid]) // It's a mouse entered
|
||||||
{
|
{
|
||||||
[c mouseEntered: theEvent];
|
[c mouseEntered: theEvent];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue