summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-01-19 13:22:10 +0000
committerCaolán McNamara <caolanm@redhat.com>2016-01-19 13:25:20 +0000
commitd6c5a8103b103b80ef171c09ca593e68ae867189 (patch)
treeb65550ed86920fa95399d1b030e1b8ee35cb1734 /vcl
parente2b222cc98b1378b85d0c37eb9f5ef562247b3cf (diff)
Resolves: tdf#99604 ungrab modal dialogs
Change-Id: I6735913c371968745da3ad6bf61e6ae3287c19a6 (cherry picked from commit 011ce226e89ecabaf621603d692547c88061eaba)
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/gtk3/gtk3gtkframe.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx
index 576946f86ca6..aace8b3f12c3 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 )