summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVeronika Irvine <veronika>2006-03-17 16:54:41 +0000
committerVeronika Irvine <veronika>2006-03-17 16:54:41 +0000
commite2b3db5bcda8b2fc02d1e1789f8d5d7aaee21221 (patch)
tree7354688b34c94dad23d24306b1c500661fcd923c
parentd249d09ca373f604e50b8fbeff2350b54bae2830 (diff)
downloadeclipse.platform.swt-e2b3db5bcda8b2fc02d1e1789f8d5d7aaee21221.tar.gz
eclipse.platform.swt-e2b3db5bcda8b2fc02d1e1789f8d5d7aaee21221.tar.xz
eclipse.platform.swt-e2b3db5bcda8b2fc02d1e1789f8d5d7aaee21221.zip
Bug130037 Make a special case out of drop - this will cause one flash in the cursor but this will not be noticed as the cursor is going away anyway
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DropTarget.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DropTarget.java b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DropTarget.java
index 2c4cf4fa0d..98805dd9a0 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DropTarget.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Drag and Drop/win32/org/eclipse/swt/dnd/DropTarget.java
@@ -418,7 +418,12 @@ int Drop(int pDataObject, int grfKeyState, int pt_x, int pt_y, int pdwEffect) {
event.detail = selectedOperation;
event.dataType = selectedDataType;
event.data = object;
- notifyListeners(DND.Drop,event);
+ OS.ImageList_DragShowNolock(false);
+ try {
+ notifyListeners(DND.Drop,event);
+ } finally {
+ OS.ImageList_DragShowNolock(true);
+ }
refresh();
selectedOperation = DND.DROP_NONE;
if ((allowedOperations & event.detail) == event.detail) {