From 1965bd9645777d94d93d4caae799577af71039f8 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 11 May 2021 09:38:12 +0100 Subject: gtk4: gtk_widget_set_focusable needed for GtkEventControllerFocus MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit worth mentioning in the docs Change-Id: I635bff1e7cf416796f78173ce719ce01f6cf1e5f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115386 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- vcl/unx/gtk3/gtkframe.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'vcl') diff --git a/vcl/unx/gtk3/gtkframe.cxx b/vcl/unx/gtk3/gtkframe.cxx index 1d7ac5f965f3..b1f2becba4b2 100644 --- a/vcl/unx/gtk3/gtkframe.cxx +++ b/vcl/unx/gtk3/gtkframe.cxx @@ -1011,6 +1011,7 @@ void GtkSalFrame::InitCommon() GtkEventController* pFocusController = gtk_event_controller_focus_new(); g_signal_connect(pFocusController, "enter", G_CALLBACK(signalFocusEnter), this); g_signal_connect(pFocusController, "leave", G_CALLBACK(signalFocusLeave), this); + gtk_widget_set_focusable(pEventWidget, true); gtk_widget_add_controller(pEventWidget, pFocusController); #endif #if !GTK_CHECK_VERSION(4,0,0) -- cgit