Skip to content

Commit 63d3ce6

Browse files
author
Thomas Singer
committed
[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.
1 parent e2eb09a commit 63d3ce6

File tree

1 file changed

+1
-0
lines changed
  • bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets

1 file changed

+1
-0
lines changed

bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets/Control.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5090,6 +5090,7 @@ boolean sendMouseEvent (int type, int button, int count, int detail, boolean sen
50905090
flushQueueOnDnd();
50915091
} else {
50925092
dragDetectionQueue.add(event);
5093+
return true;
50935094
}
50945095
break;
50955096
case SWT.MouseUp:

0 commit comments

Comments
 (0)