From 6a948c63ee0e1ea13eb30fe47602cff0628604cc Mon Sep 17 00:00:00 2001 From: lukefromdc Date: Wed, 9 Aug 2023 06:40:32 -0400 Subject: libmate-panel-applet: don't use panel plug to find the screen * There is only one screen in GTK 3.22 or later * Finding the screen from that used by GtkPanelPlug is out of process only * Any in-process applet calling mate_panel_applet_request_focus needs this to avoid a segfault * One known user: dictionary applet --- libmate-panel-applet/mate-panel-applet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmate-panel-applet/mate-panel-applet.c b/libmate-panel-applet/mate-panel-applet.c index 026ee941..04315531 100644 --- a/libmate-panel-applet/mate-panel-applet.c +++ b/libmate-panel-applet/mate-panel-applet.c @@ -618,7 +618,7 @@ mate_panel_applet_request_focus (MatePanelApplet *applet, g_return_if_fail (MATE_PANEL_IS_APPLET (applet)); priv = mate_panel_applet_get_instance_private (applet); - screen = gtk_window_get_screen (GTK_WINDOW (priv->plug)); + screen = gdk_screen_get_default(); /*There is only one screen since GTK 3.22*/ root = gdk_screen_get_root_window (screen); display = gdk_screen_get_display (screen); -- cgit v1.2.1