Skip to content

Commit b2b5d45

Browse files
committed
[GTK4] Stop blinking caret on focus out
1 parent c051490 commit b2b5d45

File tree

1 file changed

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

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,10 @@ void gtk4_focus_window_event(long handle, long event) {
264264
if(event == SWT.FocusIn) {
265265
gtk_focus_in_event (handle, event);
266266
if (caret != null) caret.setFocus ();
267+
} else {
268+
gtk_focus_out_event(handle, event);
269+
if (caret != null) caret.killFocus();
267270
}
268-
else gtk_focus_out_event(handle, event);
269271
}
270272

271273
@Override

0 commit comments

Comments
 (0)