vcl/unx/gtk3/gtk3gtkframe.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 39a4c91b50cc2c934b8403beacc99f4d1f5fc7c3
Author: Caolán McNamara <[email protected]>
AuthorDate: Sun Aug 23 21:07:53 2020 +0100
Commit: Caolán McNamara <[email protected]>
CommitDate: Mon Aug 24 10:04:33 2020 +0200
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 <[email protected]>
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
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits