when displaying the drag overlay, only have it appear on top of the main torrent window
This commit is contained in:
parent
8e7559a1c6
commit
e15098e7c0
|
@ -2102,7 +2102,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
||||||
tr_torrentClose(fLib, tempTor);
|
tr_torrentClose(fLib, tempTor);
|
||||||
|
|
||||||
[fOverlayWindow setFrame: [fWindow frame] display: YES];
|
[fOverlayWindow setFrame: [fWindow frame] display: YES];
|
||||||
[fOverlayWindow orderWindow: NSWindowAbove relativeTo: [fWindow windowNumber]];
|
[fWindow addChildWindow: fOverlayWindow ordered: NSWindowAbove];
|
||||||
|
|
||||||
return NSDragOperationGeneric;
|
return NSDragOperationGeneric;
|
||||||
}
|
}
|
||||||
|
@ -2111,7 +2111,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
||||||
else if ([[pasteboard types] containsObject: NSURLPboardType])
|
else if ([[pasteboard types] containsObject: NSURLPboardType])
|
||||||
{
|
{
|
||||||
[fOverlayWindow setFrame: [fWindow frame] display: YES];
|
[fOverlayWindow setFrame: [fWindow frame] display: YES];
|
||||||
[fOverlayWindow orderWindow: NSWindowAbove relativeTo: [fWindow windowNumber]];
|
[fWindow addChildWindow: fOverlayWindow ordered: NSWindowAbove];
|
||||||
|
|
||||||
return NSDragOperationGeneric;
|
return NSDragOperationGeneric;
|
||||||
}
|
}
|
||||||
|
@ -2122,11 +2122,13 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
||||||
|
|
||||||
- (void) draggingExited: (id <NSDraggingInfo>) sender
|
- (void) draggingExited: (id <NSDraggingInfo>) sender
|
||||||
{
|
{
|
||||||
|
[fWindow removeChildWindow: fOverlayWindow];
|
||||||
[fOverlayWindow close];
|
[fOverlayWindow close];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL) performDragOperation: (id <NSDraggingInfo>) info
|
- (BOOL) performDragOperation: (id <NSDraggingInfo>) info
|
||||||
{
|
{
|
||||||
|
[fWindow removeChildWindow: fOverlayWindow];
|
||||||
[fOverlayWindow close];
|
[fOverlayWindow close];
|
||||||
|
|
||||||
NSPasteboard * pasteboard = [info draggingPasteboard];
|
NSPasteboard * pasteboard = [info draggingPasteboard];
|
||||||
|
|
Loading…
Reference in New Issue