Skip to content

Commit 77b255c

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 a9598b8 commit 77b255c

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

0 commit comments

Comments
 (0)