diff options
author | Christian Persch <chpe@src.gnome.org> | 2022-08-03 22:58:02 +0200 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2022-08-03 22:58:34 +0200 |
commit | d46756b89cfbb61929812ca2bd1d8c13a9504044 (patch) | |
tree | 917a00712ce21756677be40cef865fb081882d2c /src/vte.cc | |
parent | 901558bf471299e483976770e062730f35c13414 (diff) | |
download | vte-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.cc | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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); |