Cocoa : fix Dropped on application event was not sent
authorDamien Plisson <damien.plisson@yahoo.fr>
Fri, 18 Dec 2009 09:50:14 +0000 (09:50 +0000)
committerDamien Plisson <damien.plisson@yahoo.fr>
Fri, 18 Dec 2009 09:50:14 +0000 (09:50 +0000)
intern/ghost/intern/GHOST_SystemCocoa.mm

index 37befdf7f8518126a3feabcc423dcd5d0a5dd6b7..41601cd1c49d0a88643060c67b4d05ce67473009 100644 (file)
@@ -958,7 +958,7 @@ GHOST_TSuccess GHOST_SystemCocoa::handleWindowEvent(GHOST_TEventType eventType,
 GHOST_TSuccess GHOST_SystemCocoa::handleDraggingEvent(GHOST_TEventType eventType, GHOST_TDragnDropTypes draggedObjectType,
                                                                   GHOST_WindowCocoa* window, int mouseX, int mouseY, void* data)
 {
-       if (!validWindow(window)) {
+       if (!validWindow(window) && (eventType != GHOST_kEventDraggingDropOnIcon)) {
                return GHOST_kFailure;
        }
        switch(eventType)