mirror of
https://github.com/gnustep/libs-back.git
synced 2025-04-22 23:42:16 +00:00
(_handleEventDuringDragging:,
_updateAndMoveImageToCorrectPosition, _xWindowAcceptingDnDunderX:Y:, _xWindowAcceptingDnDDescendentOf:underX:Y:) git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/back/trunk@16942 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6d9f7678aa
commit
39cb6f8e2d
1 changed files with 5 additions and 5 deletions
|
@ -728,9 +728,9 @@ static XGDragView *sharedDragView = nil;
|
|||
|
||||
case GSAppKitDraggingStatus:
|
||||
NSDebugLLog(@"NSDragging", @"got GSAppKitDraggingStatus\n");
|
||||
if ([theEvent data1] == targetWindow)
|
||||
if ((Window)[theEvent data1] == targetWindow)
|
||||
{
|
||||
int newTargetMask = [theEvent data2];
|
||||
unsigned int newTargetMask = [theEvent data2];
|
||||
|
||||
if (newTargetMask != targetMask)
|
||||
{
|
||||
|
@ -877,7 +877,7 @@ static XGDragView *sharedDragView = nil;
|
|||
//
|
||||
if (oldDragExternal != dragExternal)
|
||||
{
|
||||
int newMask;
|
||||
unsigned int newMask;
|
||||
|
||||
newMask = [dragSource draggingSourceOperationMaskForLocal: dragExternal];
|
||||
if (newMask != dragMask)
|
||||
|
@ -1122,7 +1122,7 @@ static XGDragView *sharedDragView = nil;
|
|||
result = [self _xWindowAcceptingDnDDescendentOf: child
|
||||
underX: x
|
||||
Y: y];
|
||||
if (result != -1)
|
||||
if (result != (Window)-1)
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -1152,7 +1152,7 @@ static XGDragView *sharedDragView = nil;
|
|||
result = [self _xWindowAcceptingDnDDescendentOf: dragWindev->root
|
||||
underX: x
|
||||
Y: y];
|
||||
if (result == -1)
|
||||
if (result == (Window)-1)
|
||||
return None;
|
||||
else
|
||||
return result;
|
||||
|
|
Loading…
Reference in a new issue