From 77b255c1b1a2ee23c510b976080f8edfa2aa9c93 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 a1820dc550..3d2e3cd006 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 @@ -5102,6 +5102,7 @@ boolean sendMouseEvent (int type, int button, int count, int detail, boolean sen flushQueueOnDnd(); } else { dragDetectionQueue.add(event); + return true; } break; case SWT.MouseUp: