summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/vte.cc3
1 files changed, 3 insertions, 0 deletions
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. */