Skip to content

Commit c8db974

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 63d5582 commit c8db974

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
@@ -5091,6 +5091,7 @@ boolean sendMouseEvent (int type, int button, int count, int detail, boolean sen
50915091
flushQueueOnDnd();
50925092
} else {
50935093
dragDetectionQueue.add(event);
5094+
return true;
50945095
}
50955096
break;
50965097
case SWT.MouseUp:

0 commit comments

Comments
 (0)