diff options
author | Lakshmi Shanmugam <lshanmugam> | 2010-08-11 18:11:47 +0000 |
---|---|---|
committer | Lakshmi Shanmugam <lshanmugam> | 2010-08-11 18:11:47 +0000 |
commit | bcb8c5d7f663003ad3fc43bf1aa4aaec5bd3bdaf (patch) | |
tree | 10eaea321be7ca857f388d1b8f99c39dd2220fc6 /bundles/org.eclipse.swt/Eclipse SWT Drag and Drop | |
parent | 80ca8951224b622855cfac7f663b9b962d66aaed (diff) | |
download | eclipse.platform.swt-bcb8c5d7f663003ad3fc43bf1aa4aaec5bd3bdaf.tar.gz eclipse.platform.swt-bcb8c5d7f663003ad3fc43bf1aa4aaec5bd3bdaf.tar.xz eclipse.platform.swt-bcb8c5d7f663003ad3fc43bf1aa4aaec5bd3bdaf.zip |
Bug 243529 - [DND] [Mac] Erratic DND behaviour on Mac OS X
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Drag and Drop')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/DragSource.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/DragSource.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/DragSource.java index f1f8ff4544..7aa900bde6 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/DragSource.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/carbon/org/eclipse/swt/dnd/DragSource.java @@ -110,6 +110,7 @@ public class DragSource extends Widget { DragSourceEffect dragEffect; static final String DEFAULT_DRAG_SOURCE_EFFECT = "DEFAULT_DRAG_SOURCE_EFFECT"; //$NON-NLS-1$ + static final String DRAG_STARTED = "org.eclipse.swt.internal.dragStarted"; //$NON-NLS-1$ static Callback DragSendDataProc; static { @@ -327,7 +328,9 @@ void drag(Event dragEvent) { theEvent.what = (short)OS.osEvt; theEvent.where_h = pt.h; theEvent.where_v = pt.v; + control.setData(DRAG_STARTED, new Object()); int result = OS.TrackDrag(theDrag[0], theEvent, theRegion); + control.setData(DRAG_STARTED, null); int operation = DND.DROP_NONE; if (result == OS.noErr) { int[] outAction = new int[1]; |