Skip to content

Commit 366ee0e

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 4722846 commit 366ee0e

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
@@ -5107,6 +5107,7 @@ boolean sendMouseEvent (int type, int button, int count, int detail, boolean sen
51075107
flushQueueOnDnd();
51085108
} else {
51095109
dragDetectionQueue.add(event);
5110+
return true;
51105111
}
51115112
break;
51125113
case SWT.MouseUp:

0 commit comments

Comments
 (0)