Skip to content

Commit 8c053e3

Browse files
committed
[Gtk4] Remove unneeded guard in Link.gtk4_motion_event
Event can't be null at this stage as it would have failed in previous super call.
1 parent d9c6b90 commit 8c053e3

1 file changed

Lines changed: 1 addition & 1 deletion

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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ long gtk3_motion_notify_event (long widget, long event) {
546546
void gtk4_motion_event(long controller, double x, double y, long event) {
547547
super.gtk4_motion_event(controller, x, y, event);
548548

549-
int state = event != 0 ? GDK.gdk_event_get_modifier_state(event) : 0;
549+
int state = GDK.gdk_event_get_modifier_state(event);
550550

551551
handleMotion(state, (int) x, (int) y);
552552
}

0 commit comments

Comments
 (0)