Skip to content

Commit 7f92e36

Browse files
Add missing x, y coordinates to gtk4 mouse event.
1 parent 7f3f080 commit 7f92e36

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3456,7 +3456,7 @@ int gtk_gesture_release_event (long gesture, int n_press, double x, double y, lo
34563456
lastInput.x = (int) eventX[0];
34573457
lastInput.y = (int) eventY[0];
34583458
if (containedInRegion(lastInput.x, lastInput.y)) return GTK4.GTK_EVENT_SEQUENCE_NONE;
3459-
boolean cancelled = sendMouseEvent(SWT.MouseUp, eventButton, display.clickCount, 0, false, eventTime, 0, 0, false, eventState);
3459+
boolean cancelled = sendMouseEvent(SWT.MouseUp, eventButton, display.clickCount, 0, false, eventTime, x, y, false, eventState);
34603460
int result = GTK4.GTK_EVENT_SEQUENCE_NONE;
34613461
if (!cancelled) {
34623462
result = GTK4.GTK_EVENT_SEQUENCE_CLAIMED;

0 commit comments

Comments
 (0)