Skip to content

Commit a90eda9

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 48e5878 commit a90eda9

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
@@ -5103,6 +5103,7 @@ boolean sendMouseEvent (int type, int button, int count, int detail, boolean sen
51035103
flushQueueOnDnd();
51045104
} else {
51055105
dragDetectionQueue.add(event);
5106+
return true;
51065107
}
51075108
break;
51085109
case SWT.MouseUp:

0 commit comments

Comments
 (0)