From 0f1f76246bb1598318622d64948e539f89a9bd3c Mon Sep 17 00:00:00 2001 From: Thomas Singer Date: Wed, 1 Oct 2025 15:29:55 +0200 Subject: [PATCH] Control.flushQueueOnDnd: simplify commit sendOrPost set event.data to null before sending, so keep that behavior --- .../Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java index b193dd7be6..6dd91ba47a 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java @@ -4849,9 +4849,9 @@ void flushQueueOnDnd() { // to determine DnD threshold. // This is to preserve backwards Cocoa/Win32 compatibility. Event mouseDownEvent = dragDetectionQueue.getFirst(); - mouseDownEvent.data = Boolean.valueOf(true); // force send MouseDown to avoid subsequent MouseMove before MouseDown. + mouseDownEvent.data = null; dragDetectionQueue = null; - sendOrPost(SWT.MouseDown, mouseDownEvent); + sendEvent(SWT.MouseDown, mouseDownEvent); } boolean sendDragEvent (int button, int stateMask, int x, int y, boolean isStateMask) {