summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-08-23 21:07:53 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-08-24 10:04:33 +0200
commit39a4c91b50cc2c934b8403beacc99f4d1f5fc7c3 (patch)
treee2f579f81a34f1ba6b209bea066fc7f309764a70 /vcl/unx
parenta6e5d5d4452dcd612cdfea10d8c2fd99cddebf56 (diff)
avoid gtk_widget_event assertion !WIDGET_REALIZED_FOR_EVENT
just bail if the focus widget isn't realized yet Change-Id: I2f0ebe424abb688b6fa0c82bb61ba56a47fad701 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101249 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/gtk3/gtk3gtkframe.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkframe.cxx b/vcl/unx/gtk3/gtk3gtkframe.cxx
index 5959bb62a67d..4e028c6ad180 100644
--- a/vcl/unx/gtk3/gtk3gtkframe.cxx
+++ b/vcl/unx/gtk3/gtk3gtkframe.cxx
@@ -3185,6 +3185,8 @@ gboolean GtkSalFrame::signalKey(GtkWidget* pWidget, GdkEventKey* pEvent, gpointe
GtkWidget* pFocusWindow = gtk_window_get_focus(GTK_WINDOW(pThis->m_pWindow));
if (pFocusWindow && pFocusWindow != GTK_WIDGET(pThis->m_pFixedContainer))
{
+ if (!gtk_widget_get_realized(pFocusWindow))
+ return true;
gpointer pClass = g_type_class_ref(GTK_TYPE_WINDOW);
GtkWidgetClass* pWindowClass = GTK_WIDGET_CLASS(pClass);
// if the focus is not in our main widget, see if there is a handler