Skip to content

Commit 65b962b

Browse files
committed
[GTK4] Support MenuDetect
That case was not handled at all. Fixes #2534
1 parent c3df782 commit 65b962b

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3426,6 +3426,10 @@ int gtk_gesture_press_event (long gesture, int n_press, double x, double y, long
34263426
if (showMenu ((int)x, (int)y)) {
34273427
result = GTK4.GTK_EVENT_SEQUENCE_CLAIMED;
34283428
}
3429+
} else if ((state & MENU) == 0) {
3430+
if (showMenu((int) x, (int) y)) {
3431+
result = GTK4.GTK_EVENT_SEQUENCE_CLAIMED;
3432+
}
34293433
}
34303434
}
34313435
} else if (n_press >= 2) {

0 commit comments

Comments
 (0)