Skip to content

Commit 0f1f762

Browse files
author
Thomas Singer
committed
Control.flushQueueOnDnd: simplify commit
sendOrPost set event.data to null before sending, so keep that behavior
1 parent 63d5582 commit 0f1f762

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
@@ -4849,9 +4849,9 @@ void flushQueueOnDnd() {
48494849
// to determine DnD threshold.
48504850
// This is to preserve backwards Cocoa/Win32 compatibility.
48514851
Event mouseDownEvent = dragDetectionQueue.getFirst();
4852-
mouseDownEvent.data = Boolean.valueOf(true); // force send MouseDown to avoid subsequent MouseMove before MouseDown.
4852+
mouseDownEvent.data = null;
48534853
dragDetectionQueue = null;
4854-
sendOrPost(SWT.MouseDown, mouseDownEvent);
4854+
sendEvent(SWT.MouseDown, mouseDownEvent);
48554855
}
48564856

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

0 commit comments

Comments
 (0)