[Libreoffice-commits] core.git: Branch 'libreoffice-5-3' - vcl/unx

Caolán McNamara caolanm at redhat.com
Fri Jun 23 20:13:42 UTC 2017


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

New commits:
commit d8677b79fedda8a13f560e1a9a7ca8b36642366b
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Jun 23 12:48:12 2017 +0100

    Resolves: tdf#108705 remove grabs on widget before destroying it
    
    Change-Id: If02a0b4340788db638c74b98e855258145643452
    Reviewed-on: https://gerrit.libreoffice.org/39167
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Michael Stahl <mstahl at redhat.com>

diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx
index 67caeb516770..95cad3d56a0a 100644
--- a/vcl/unx/gtk3/gtk3gtkframe.cxx
+++ b/vcl/unx/gtk3/gtk3gtkframe.cxx
@@ -832,6 +832,11 @@ GtkSalFrame::~GtkSalFrame()
 
     delete m_pIMHandler;
 
+    //tdf#108705 remove grabs on event widget before
+    //destroying event widget
+    while (m_nGrabLevel)
+        removeGrabLevel();
+
     GtkWidget *pEventWidget = getMouseEventWidget();
     for (auto handler_id : m_aMouseSignalIds)
         g_signal_handler_disconnect(G_OBJECT(pEventWidget), handler_id);


More information about the Libreoffice-commits mailing list