7178079: REGRESSION: Some AWT Drag-n-Drop tests fail since JDK 7u6 b13
authordenis
Wed, 27 Feb 2013 19:38:36 +0400
changeset 15986 67684458723f
parent 15985 b9e25a486549
child 15987 1cd2a92ba636
7178079: REGRESSION: Some AWT Drag-n-Drop tests fail since JDK 7u6 b13 Reviewed-by: serb, anthony
jdk/src/macosx/classes/sun/lwawt/macosx/CDropTargetContextPeer.java
--- a/jdk/src/macosx/classes/sun/lwawt/macosx/CDropTargetContextPeer.java	Mon Feb 25 10:17:25 2013 +0000
+++ b/jdk/src/macosx/classes/sun/lwawt/macosx/CDropTargetContextPeer.java	Wed Feb 27 19:38:36 2013 +0400
@@ -128,6 +128,15 @@
         }
     }
 
+    @Override
+    protected int postDropTargetEvent(Component component, int x, int y, int dropAction,
+                                      int actions, long[] formats, long nativeCtxt, int eventID,
+                                      boolean dispatchType) {
+        // On MacOS X all the DnD events should be synchronous
+        return super.postDropTargetEvent(component, x, y, dropAction, actions, formats, nativeCtxt,
+                eventID, SunDropTargetContextPeer.DISPATCH_SYNC);
+    }
+
     // Signal drop complete:
     protected void doDropDone(boolean success, int dropAction, boolean isLocal) {
         long nativeDropTarget = this.getNativeDragContext();