Skip to content

Commit ccae0e8

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

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

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

0 commit comments

Comments
 (0)