mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 16:10:48 +00:00
Bugfix for tracking rects.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3559 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
298e1e2f75
commit
f6e911275f
1 changed files with 16 additions and 9 deletions
|
@ -1016,15 +1016,22 @@ NSView *v;
|
|||
break;
|
||||
|
||||
case NSCursorUpdate: // Cursor update
|
||||
if ([theEvent trackingNumber]) // if it's a mouse entered
|
||||
{ // push the cursor
|
||||
GSTrackingRect *r =(GSTrackingRect *)[theEvent userData];
|
||||
NSCursor *c = (NSCursor *)[r owner];
|
||||
[c push];
|
||||
} // it is a mouse exited
|
||||
else // so pop the cursor
|
||||
[NSCursor pop];
|
||||
break;
|
||||
{
|
||||
GSTrackingRect *r =(GSTrackingRect *)[theEvent userData];
|
||||
NSCursor *c = (NSCursor *)[r owner];
|
||||
|
||||
if ([theEvent trackingNumber]) // It's a mouse entered
|
||||
{
|
||||
if (c && [c isSetOnMouseEntered])
|
||||
[c set];
|
||||
}
|
||||
else // it is a mouse exited
|
||||
{
|
||||
if (c && [c isSetOnMouseExited])
|
||||
[c set];
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case NSPeriodic:
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue