summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2023-08-09 06:40:32 -0400
committerLuke from DC <[email protected]>2023-08-12 17:05:52 +0000
commit6a948c63ee0e1ea13eb30fe47602cff0628604cc (patch)
tree4a50b673913c530a8ea21b4a1f263609f4bd9994
parentfff4b7e24868e7a8fa3634f618c6bdf813f402ca (diff)
downloadmate-panel-6a948c63ee0e1ea13eb30fe47602cff0628604cc.tar.bz2
mate-panel-6a948c63ee0e1ea13eb30fe47602cff0628604cc.tar.xz
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
-rw-r--r--libmate-panel-applet/mate-panel-applet.c2
1 files changed, 1 insertions, 1 deletions
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);