Skip to content

Commit 762462d

Browse files
author
Thomas Singer
committed
Control.flushQueueOnDnd: simplify commit
1 parent 48e5878 commit 762462d

File tree

1 file changed

+2
-2
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets

1 file changed

+2
-2
lines changed

bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4861,9 +4861,9 @@ void flushQueueOnDnd() {
48614861
// to determine DnD threshold.
48624862
// This is to preserve backwards Cocoa/Win32 compatibility.
48634863
Event mouseDownEvent = dragDetectionQueue.getFirst();
4864-
mouseDownEvent.data = Boolean.valueOf(true); // force send MouseDown to avoid subsequent MouseMove before MouseDown.
4864+
mouseDownEvent.data = null;
48654865
dragDetectionQueue = null;
4866-
sendOrPost(SWT.MouseDown, mouseDownEvent);
4866+
sendEvent(SWT.MouseDown, mouseDownEvent);
48674867
}
48684868

48694869
boolean sendDragEvent (int button, int stateMask, int x, int y, boolean isStateMask) {

0 commit comments

Comments
 (0)