mirror of
https://github.com/gnustep/libs-back.git
synced 2025-02-23 20:01:22 +00:00
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:
parent
654ec7fcae
commit
cc2363cce0
2 changed files with 11 additions and 7 deletions
|
@ -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>
|
2003-02-16 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/x11/XGDragView.m: Set drag window at NSPopUpMenuWindowLevel
|
* Source/x11/XGDragView.m: Set drag window at NSPopUpMenuWindowLevel
|
||||||
|
|
|
@ -199,7 +199,7 @@ static XGDragView *sharedDragView = nil;
|
||||||
|
|
||||||
- (void) drawRect: (NSRect)rect
|
- (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);
|
return (operationMask != oldOperationMask);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/**
|
||||||
_setCursor examines the state of the dragging and update
|
_setCursor examines the state of the dragging and update
|
||||||
the cursor accordingly. It will not save the current cursor,
|
the cursor accordingly. It will not save the current cursor,
|
||||||
if you want to keep the original you have to save it yourself.
|
if you want to keep the original you have to save it yourself.
|
||||||
|
@ -613,7 +613,7 @@ static XGDragView *sharedDragView = nil;
|
||||||
[self _updateAndMoveImageToCorrectPosition];
|
[self _updateAndMoveImageToCorrectPosition];
|
||||||
[NSEvent startPeriodicEventsAfterDelay: 0.02 withPeriod: 0.03];
|
[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)
|
while ([theEvent type] != NSLeftMouseUp)
|
||||||
{
|
{
|
||||||
[self _handleEventDuringDragging: theEvent];
|
[self _handleEventDuringDragging: theEvent];
|
||||||
|
@ -787,10 +787,6 @@ static XGDragView *sharedDragView = nil;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case NSPeriodic:
|
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)
|
if (newPosition.x != dragPosition.x || newPosition.y != dragPosition.y)
|
||||||
{
|
{
|
||||||
[self _updateAndMoveImageToCorrectPosition];
|
[self _updateAndMoveImageToCorrectPosition];
|
||||||
|
|
Loading…
Reference in a new issue