From ccae0e8955b7928e61ef2efda4c6372a382cbe77 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 a1820dc550..2297218de9 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 @@ -4860,9 +4860,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) {