Tracking rect fixes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3980 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
richard 1999-03-25 21:23:32 +00:00
parent 4342a44d3e
commit 275648662a
7 changed files with 399 additions and 362 deletions

View file

@ -1377,16 +1377,19 @@ static SEL invalidateSel = @selector(_invalidateCoordinates);
{
GSTrackingRect *m;
m = [[[GSTrackingRect alloc] initWithRect: aRect
tag: 0
owner: anObject
userData: NULL
inside: YES] autorelease];
m = [GSTrackingRect allocWithZone: NSDefaultMallocZone()];
m = [m initWithRect: aRect
tag: 0
owner: anObject
userData: NULL
inside: YES];
[cursor_rects addObject: m];
[m release];
}
- (void) discardCursorRects
{
[cursor_rects makeObjectsPerformSelector: @selector(invalidate)];
[cursor_rects removeAllObjects];
}
@ -1402,6 +1405,7 @@ static SEL invalidateSel = @selector(_invalidateCoordinates);
c = [o owner];
if (c == anObject)
{
[o invalidate];
[cursor_rects removeObject: o];
break;
}