[Libreoffice-commits] core.git: vcl/unx

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Tue Feb 4 11:51:34 UTC 2020


 vcl/unx/gtk3/gtk3gtkframe.cxx |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit 02c5a61944a212ecc4573001a2fb853339448b03
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Feb 4 09:53:02 2020 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Feb 4 12:50:59 2020 +0100

    tdf#129634 ignore floating toolbars
    
    Change-Id: Id51f14f75e6547532d9742ef3420e10d06974a17
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87957
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx
index 6096dbd09ba0..ce2ed4f3ab47 100644
--- a/vcl/unx/gtk3/gtk3gtkframe.cxx
+++ b/vcl/unx/gtk3/gtk3gtkframe.cxx
@@ -3058,6 +3058,10 @@ void GtkSalFrame::signalSetFocus(GtkWindow*, GtkWidget* pWidget, gpointer frame)
         return;
     // change of focus between native widgets within the toplevel
     GtkSalFrame* pThis = static_cast<GtkSalFrame*>(frame);
+    // tdf#129634 ignore floating toolbars
+    if (pThis->m_nStyle & SalFrameStyleFlags::OWNERDRAWDECORATION)
+        return;
+
     // tdf#129634 interpret losing focus as focus passing explicitly to another widget
     bool bLoseFocus = pWidget && pWidget != GTK_WIDGET(pThis->m_pFixedContainer);
     pThis->CallCallbackExc(bLoseFocus ? SalEvent::LoseFocus : SalEvent::GetFocus, nullptr);


More information about the Libreoffice-commits mailing list