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

Caolán McNamara caolanm at redhat.com
Fri Jun 23 14:09:59 UTC 2017


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

New commits:
commit 9b32355ea6d8d5e34363ba0c57e74d75d7a7b1b7
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/39165
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx
index d59d07ef085d..30a0e2787355 100644
--- a/vcl/unx/gtk3/gtk3gtkframe.cxx
+++ b/vcl/unx/gtk3/gtk3gtkframe.cxx
@@ -836,6 +836,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