Skip to content

Commit d9c6b90

Browse files
committed
Do not duplicate setFocus call
Catched by review that Gtk 4 press event handling was potentially setFocus twice.
1 parent 90a7d81 commit d9c6b90

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -412,8 +412,7 @@ int gtk_gesture_press_event(long gesture, int n_press, double x, double y, long
412412

413413
if (GTK.gtk_gesture_single_get_current_button(gesture) != 1 || n_press != 1) return result;
414414

415-
if (focusIndex != -1) setFocus();
416-
handlePress((int) x, (int) y);
415+
handlePress((int) x, (int) y);
417416
return result;
418417
}
419418

0 commit comments

Comments
 (0)