[Libreoffice-commits] core.git: Branch 'libreoffice-5-1' - vcl/unx
Caolán McNamara
caolanm at redhat.com
Tue Jan 19 05:28:05 PST 2016
vcl/unx/gtk3/gtk3gtkframe.cxx | 7 +++++++
1 file changed, 7 insertions(+)
New commits:
commit d6c5a8103b103b80ef171c09ca593e68ae867189
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Jan 19 13:22:10 2016 +0000
Resolves: tdf#99604 ungrab modal dialogs
Change-Id: I6735913c371968745da3ad6bf61e6ae3287c19a6
(cherry picked from commit 011ce226e89ecabaf621603d692547c88061eaba)
diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx
index 576946f..aace8b3 100644
--- a/vcl/unx/gtk3/gtk3gtkframe.cxx
+++ b/vcl/unx/gtk3/gtk3gtkframe.cxx
@@ -2377,6 +2377,13 @@ void GtkSalFrame::SetModal(bool bModal)
if (!m_pWindow)
return;
gtk_window_set_modal(GTK_WINDOW(m_pWindow), bModal);
+ if (bModal)
+ {
+ //gtk_window_set_modal bTrue adds a grab, so ungrab here. Quite
+ //possibly we should alternatively call grab_add grab_ungrab on
+ //show/hide of menus ?
+ gtk_grab_remove(m_pWindow);
+ }
}
gboolean GtkSalFrame::signalButton( GtkWidget*, GdkEventButton* pEvent, gpointer frame )
More information about the Libreoffice-commits
mailing list