< prev index next >

src/java.desktop/macosx/classes/sun/lwawt/macosx/CDropTargetContextPeer.java

Print this page

        

@@ -164,10 +164,18 @@
         // On MacOS X all the DnD events should be synchronous
         return super.postDropTargetEvent(component, x, y, dropAction, actions, formats, nativeCtxt,
                 eventID, SunDropTargetContextPeer.DISPATCH_SYNC);
     }
 
+    @Override
+    protected void handleDropMessage(Component component, int x, int y,
+                                     int dropAction, int actions, long[] formats,
+                                     long nativeCtxt) {
+        super.handleDropMessage(component, x, y, dropAction, actions, formats, nativeCtxt);
+        flushEvents(component);
+    }
+
     // Signal drop complete:
     protected void doDropDone(boolean success, int dropAction, boolean isLocal) {
         long nativeDropTarget = this.getNativeDragContext();
 
         dropDone(nativeDropTarget, fNativeDropTransfer, isLocal, success, dropAction);
< prev index next >