diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-09-10 19:57:26 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-09-10 21:57:35 +0200 |
commit | ade900a09ee5486208b72f7d1b399b1c3c5785e8 (patch) | |
tree | b2659ab5e6847602b6f37ea0a326b4eed1147fef | |
parent | 23126db6e0ca3eb51748b6f579d066f20536d27b (diff) |
tdf#136512 listen to style-updated on pEventWidget instead of toplevel...
m_pWindow to avoid infinite event loop under Linux Mint Mate 18.3
Change-Id: Iaeec4538c7a3c1d49042c4eeb6d30ffc6ab01af8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102400
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | vcl/unx/gtk3/gtk3gtkframe.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx index 75ba33d3350a..61635a3d8d10 100644 --- a/vcl/unx/gtk3/gtk3gtkframe.cxx +++ b/vcl/unx/gtk3/gtk3gtkframe.cxx @@ -866,7 +866,8 @@ void GtkSalFrame::InitCommon() gtk_widget_set_redraw_on_allocate(GTK_WIDGET(m_pFixedContainer), false); // connect signals - g_signal_connect( G_OBJECT(m_pWindow), "style-updated", G_CALLBACK(signalStyleUpdated), this ); + // use pEventWidget instead of m_pWindow to avoid infinite event loop under Linux Mint Mate 18.3 + g_signal_connect( G_OBJECT(pEventWidget), "style-updated", G_CALLBACK(signalStyleUpdated), this ); gtk_widget_set_has_tooltip(pEventWidget, true); m_aMouseSignalIds.push_back(g_signal_connect( G_OBJECT(pEventWidget), "query-tooltip", G_CALLBACK(signalTooltipQuery), this )); m_aMouseSignalIds.push_back(g_signal_connect( G_OBJECT(pEventWidget), "button-press-event", G_CALLBACK(signalButton), this )); |