File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
bundles/org.eclipse.swt/Eclipse SWT/gtk/org/eclipse/swt/widgets Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -3736,10 +3736,9 @@ long gtk_event_after (long widget, long gdkEvent) {
3736
3736
}
3737
3737
case GDK .GDK_FOCUS_CHANGE : {
3738
3738
if (!isFocusHandle (widget )) break ;
3739
- boolean [] focusIn = new boolean [1 ];
3740
3739
GdkEventFocus gdkEventFocus = new GdkEventFocus ();
3741
3740
GTK3 .memmove (gdkEventFocus , gdkEvent , GdkEventFocus .sizeof );
3742
- focusIn [ 0 ] = gdkEventFocus .in != 0 ;
3741
+ boolean focusIn = gdkEventFocus .in != 0 ;
3743
3742
3744
3743
/*
3745
3744
* Feature in GTK. The GTK combo box popup under some window managers
@@ -3751,7 +3750,7 @@ long gtk_event_after (long widget, long gdkEvent) {
3751
3750
* NOTE: This code runs for all menus.
3752
3751
*/
3753
3752
Display display = this .display ;
3754
- if (focusIn [ 0 ] ) {
3753
+ if (focusIn ) {
3755
3754
if (display .ignoreFocus ) {
3756
3755
display .ignoreFocus = false ;
3757
3756
break ;
@@ -3766,7 +3765,7 @@ long gtk_event_after (long widget, long gdkEvent) {
3766
3765
}
3767
3766
}
3768
3767
}
3769
- sendFocusEvent (focusIn [ 0 ] ? SWT .FocusIn : SWT .FocusOut );
3768
+ sendFocusEvent (focusIn ? SWT .FocusIn : SWT .FocusOut );
3770
3769
break ;
3771
3770
}
3772
3771
}
You can’t perform that action at this time.
0 commit comments