vcl/unx/gtk3/gtkinst.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 873ec89d20f7a6a8d6d9003d159eb68053c626ff
Author:     Caolán McNamara <[email protected]>
AuthorDate: Fri Mar 24 11:30:05 2023 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Sat Mar 25 10:07:22 2023 +0000

    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/+/149539
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx
index 5fe9ff9779fe..575abd64d82e 100644
--- a/vcl/unx/gtk3/gtkinst.cxx
+++ b/vcl/unx/gtk3/gtkinst.cxx
@@ -6524,7 +6524,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

Reply via email to