diff options
author | Christian Persch <chpe@src.gnome.org> | 2022-08-09 21:09:08 +0200 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2022-08-09 21:09:08 +0200 |
commit | 5897ee10d53d220671fcd3a3ed96273f6151df80 (patch) | |
tree | d7813c9087425760f46e8e51c6976ca1a7f03b69 | |
parent | 7fa5c680689a9e75be6d36ce1c34f8b9c537ce12 (diff) | |
download | vte-5897ee10d53d220671fcd3a3ed96273f6151df80.tar.gz |
widget: gtk4: Don't grab the focus on focus-in
https://gitlab.gnome.org/GNOME/vte/-/issues/2555
(cherry picked from commit d7b1da6f8203a732fdc850b991236708adc0d52f)
-rw-r--r-- | src/vte.cc | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -6882,7 +6882,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. */ |