From 772a237b471b8a3a6d7e0dceaec5561fb81b3583 Mon Sep 17 00:00:00 2001 From: William Wold Date: Thu, 3 Dec 2020 20:38:58 -0800 Subject: Fix applet background for transparency as proposed by @mbkma --- libmate-panel-applet/mate-panel-applet.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libmate-panel-applet/mate-panel-applet.c b/libmate-panel-applet/mate-panel-applet.c index 0acd3dda..ce482c6e 100644 --- a/libmate-panel-applet/mate-panel-applet.c +++ b/libmate-panel-applet/mate-panel-applet.c @@ -1455,6 +1455,10 @@ mate_panel_applet_handle_background (MatePanelApplet *applet) type = mate_panel_applet_get_background (applet, &color, &pattern); + if (!gdk_screen_is_composited (gdk_screen_get_default ())) { + color.alpha = 1.; + } + switch (type) { case PANEL_NO_BACKGROUND: g_signal_emit (G_OBJECT (applet), -- cgit v1.2.1