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:
Richard Frith-MacDonald 1999-01-12 12:29:05 +00:00
parent 298e1e2f75
commit f6e911275f

View file

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