when displaying the drag overlay, only have it appear on top of the main torrent window

This commit is contained in:
Mitchell Livingston 2007-05-19 01:31:07 +00:00
parent 8e7559a1c6
commit e15098e7c0
1 changed files with 4 additions and 2 deletions

View File

@ -2102,7 +2102,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
tr_torrentClose(fLib, tempTor);
[fOverlayWindow setFrame: [fWindow frame] display: YES];
[fOverlayWindow orderWindow: NSWindowAbove relativeTo: [fWindow windowNumber]];
[fWindow addChildWindow: fOverlayWindow ordered: NSWindowAbove];
return NSDragOperationGeneric;
}
@ -2111,7 +2111,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
else if ([[pasteboard types] containsObject: NSURLPboardType])
{
[fOverlayWindow setFrame: [fWindow frame] display: YES];
[fOverlayWindow orderWindow: NSWindowAbove relativeTo: [fWindow windowNumber]];
[fWindow addChildWindow: fOverlayWindow ordered: NSWindowAbove];
return NSDragOperationGeneric;
}
@ -2122,11 +2122,13 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
- (void) draggingExited: (id <NSDraggingInfo>) sender
{
[fWindow removeChildWindow: fOverlayWindow];
[fOverlayWindow close];
}
- (BOOL) performDragOperation: (id <NSDraggingInfo>) info
{
[fWindow removeChildWindow: fOverlayWindow];
[fOverlayWindow close];
NSPasteboard * pasteboard = [info draggingPasteboard];