Skip to content

Commit abe2183

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

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
@@ -4865,9 +4865,9 @@ void flushQueueOnDnd() {
48654865
// to determine DnD threshold.
48664866
// This is to preserve backwards Cocoa/Win32 compatibility.
48674867
Event mouseDownEvent = dragDetectionQueue.getFirst();
4868-
mouseDownEvent.data = Boolean.valueOf(true); // force send MouseDown to avoid subsequent MouseMove before MouseDown.
4868+
mouseDownEvent.data = null;
48694869
dragDetectionQueue = null;
4870-
sendOrPost(SWT.MouseDown, mouseDownEvent);
4870+
sendEvent(SWT.MouseDown, mouseDownEvent);
48714871
}
48724872

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

0 commit comments

Comments
 (0)