Use frame rect not given rect

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@16009 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Adam Fedor 2003-02-19 03:54:45 +00:00
parent 654ec7fcae
commit cc2363cce0
2 changed files with 11 additions and 7 deletions

View file

@ -1,3 +1,11 @@
2003-02-17 Willem Rein Oudshoorn <woudshoo@xs4all.nl>
* Source/x11/XGDragView.m ([XGDragView -drawRect:]): use [self
frame] instead of `rect'. Fixes #101846.
([XGDragView -_handleDrag:]): Fixed typo in comment
([XGDragView -_handleEventDuringDragging:theEvent]): Removed old
comment.
2003-02-16 Richard Frith-Macdonald <rfm@gnu.org>
* Source/x11/XGDragView.m: Set drag window at NSPopUpMenuWindowLevel

View file

@ -199,7 +199,7 @@ static XGDragView *sharedDragView = nil;
- (void) drawRect: (NSRect)rect
{
[dragCell drawWithFrame: rect inView: self];
[dragCell drawWithFrame: [self frame] inView: self];
}
@ -427,7 +427,7 @@ static XGDragView *sharedDragView = nil;
return (operationMask != oldOperationMask);
}
/*
/**
_setCursor examines the state of the dragging and update
the cursor accordingly. It will not save the current cursor,
if you want to keep the original you have to save it yourself.
@ -613,7 +613,7 @@ static XGDragView *sharedDragView = nil;
[self _updateAndMoveImageToCorrectPosition];
[NSEvent startPeriodicEventsAfterDelay: 0.02 withPeriod: 0.03];
// --- Loop that handles all events durring drag operation -----------
// --- Loop that handles all events during drag operation -----------
while ([theEvent type] != NSLeftMouseUp)
{
[self _handleEventDuringDragging: theEvent];
@ -787,10 +787,6 @@ static XGDragView *sharedDragView = nil;
}
break;
case NSPeriodic:
/*
* targetWindow check is needed because otherwise events only
* arrive after an initial mouse move.
*/
if (newPosition.x != dragPosition.x || newPosition.y != dragPosition.y)
{
[self _updateAndMoveImageToCorrectPosition];