[vte/vte-0-70] widget: gtk4: Don't grab the focus on focus-in



commit 5897ee10d53d220671fcd3a3ed96273f6151df80
Author: Christian Persch <chpe src gnome org>
Date:   Tue Aug 9 21:09:08 2022 +0200

    widget: gtk4: Don't grab the focus on focus-in
    
    https://gitlab.gnome.org/GNOME/vte/-/issues/2555
    (cherry picked from commit d7b1da6f8203a732fdc850b991236708adc0d52f)

 src/vte.cc | 3 +++
 1 file changed, 3 insertions(+)
---
diff --git a/src/vte.cc b/src/vte.cc
index 554d0cca..3b53ad1a 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -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. */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]