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

Print this page

        

*** 51,69 **** } // We block, waiting for an empty event to get posted (CToolkit.invokeAndWait) // This is so we finish dispatching DropTarget events before we dispatch the dragDropFinished event (which is a higher priority). private void flushEvents(Component c) { ! try { ! LWCToolkit.invokeAndWait(new Runnable() { ! public synchronized void run() { ! } ! }, c); ! } ! catch(Exception e) { ! e.printStackTrace(); ! } } protected Object getNativeData(long format) { long nativeDropTarget = this.getNativeDragContext(); --- 51,61 ---- } // We block, waiting for an empty event to get posted (CToolkit.invokeAndWait) // This is so we finish dispatching DropTarget events before we dispatch the dragDropFinished event (which is a higher priority). private void flushEvents(Component c) { ! LWCToolkit.flushPendingEventsOnAppkit(c); } protected Object getNativeData(long format) { long nativeDropTarget = this.getNativeDragContext();