summaryrefslogtreecommitdiff
path: root/src/vte.cc
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2022-08-03 22:58:02 +0200
committerChristian Persch <chpe@src.gnome.org>2022-08-03 22:58:34 +0200
commitd46756b89cfbb61929812ca2bd1d8c13a9504044 (patch)
tree917a00712ce21756677be40cef865fb081882d2c /src/vte.cc
parent901558bf471299e483976770e062730f35c13414 (diff)
downloadvte-d46756b89cfbb61929812ca2bd1d8c13a9504044.tar.gz
widget: Listen for toplevel focus change
Need to listen to notify::state on the toplevel the widget is in, so as to generate the correct focus notifications (DECSET 1004). https://gitlab.gnome.org/GNOME/vte/-/issues/2555
Diffstat (limited to 'src/vte.cc')
-rw-r--r--src/vte.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/vte.cc b/src/vte.cc
index 601b89ad..e09ff384 100644
--- a/src/vte.cc
+++ b/src/vte.cc
@@ -7010,6 +7010,15 @@ Terminal::widget_focus_out()
}
void
+Terminal::widget_root_focused_changed(bool focused) noexcept
+{
+ if (!widget_realized())
+ return;
+
+ maybe_feed_focus_event(focused);
+}
+
+void
Terminal::widget_mouse_enter(vte::platform::MouseEvent const& event)
{
auto pos = view_coords_from_event(event);