From 39ddf8665156fc29d08117aa8661f367a3810b2d Mon Sep 17 00:00:00 2001 From: Thomas Singer Date: Wed, 27 May 2026 17:05:12 +0200 Subject: [PATCH] [GTK] MouseMove-events are not sent after showing popup #3334 Probably the collecting of mouse move/down events only makes sense for the left button that usually triggers a drag. However, it is questionable whether it should be collected endlessly. --- .../Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 88f7a051de..4a50dff7fc 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 @@ -5052,7 +5052,7 @@ boolean sendMouseEvent (int type, int button, int count, int detail, boolean sen */ event.data = Boolean.valueOf(send); if (OS.isWayland()) { - if (type == SWT.MouseDown) { + if (type == SWT.MouseDown && event.button == 1) { if (wantDragDropDetection ()) { // Delay MouseDown dragDetectionQueue = new LinkedList<>();