From c8db974525e86caea17a92c2070a73f5cab4e6f2 Mon Sep 17 00:00:00 2001 From: Thomas Singer Date: Wed, 1 Oct 2025 15:31:12 +0200 Subject: [PATCH] [GTK] Reports wrong mouse coordinates when starting a drag #2119 Control: don't send MouseMove events with stateMask set for BUTTON1 before the MouseDown event was sent These events are already added to the dragDetectionQueue, so there is no need to send/post them now. --- .../Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java | 1 + 1 file changed, 1 insertion(+) 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..d1348acd3c 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 @@ -5091,6 +5091,7 @@ boolean sendMouseEvent (int type, int button, int count, int detail, boolean sen flushQueueOnDnd(); } else { dragDetectionQueue.add(event); + return true; } break; case SWT.MouseUp: