From d7b1da6f8203a732fdc850b991236708adc0d52f Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Tue, 9 Aug 2022 21:08:06 +0200 Subject: widget: gtk4: Don't grab the focus on focus-in https://gitlab.gnome.org/GNOME/vte/-/issues/2555 --- src/vte.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vte.cc b/src/vte.cc index 4bf9587d..82613608 100644 --- a/src/vte.cc +++ b/src/vte.cc @@ -6957,7 +6957,10 @@ void Terminal::widget_focus_in() { m_has_focus = true; + +#if VTE_GTK == 3 widget()->grab_focus(); +#endif /* We only have an IM context when we're realized, and there's not much * point to painting the cursor if we don't have a window. */ -- cgit v1.2.1