diff options
author | Caolán McNamara <caolanm@redhat.com> | 2023-03-24 11:30:05 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2023-05-13 20:01:51 +0200 |
commit | 8f14e74684fc0239f5d210bf885c8991d9a32987 (patch) | |
tree | 231c78a1ea69dd2b2aee8a36f4fbf77eed8faaf9 /vcl | |
parent | f51a8508cd20355642350537ff41d7de76e79865 (diff) |
Related: tdf#153628 too many "Activate" calls with gtk
for container_focus_changed (as documented) we only want notifications
for focus entering a child of the container and focus lost to some
widget not in the container, not movement within the container
has-toplevel-focus is sufficient for this for GtkWindow (GtkDialog) and
we should omit the GtkContainer set-focus-child callback when using the
GtkWindow has-toplevel-focus
Change-Id: Id5e86b8035fd578b61c8869b91e6097b015ec411
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149517
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk3/gtkinst.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx index b4f9558db65a..f6373ecc2c6d 100644 --- a/vcl/unx/gtk3/gtkinst.cxx +++ b/vcl/unx/gtk3/gtkinst.cxx @@ -6499,7 +6499,7 @@ public: { if (!m_nToplevelFocusChangedSignalId) m_nToplevelFocusChangedSignalId = g_signal_connect(m_pWindow, "notify::has-toplevel-focus", G_CALLBACK(signalToplevelFocusChanged), this); - GtkInstanceContainer::connect_container_focus_changed(rLink); + weld::Container::connect_container_focus_changed(rLink); } virtual void disable_notify_events() override |