diff options
author | William Wold <[email protected]> | 2020-12-03 20:38:58 -0800 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-12-04 21:45:39 +0100 |
commit | 772a237b471b8a3a6d7e0dceaec5561fb81b3583 (patch) | |
tree | f0d671dd468c2fdd6e2bb67d988bc3653000a852 /libmate-panel-applet | |
parent | 47475cbe71fbda5d8d2cb1ca59b624064f49840f (diff) | |
download | mate-panel-772a237b471b8a3a6d7e0dceaec5561fb81b3583.tar.bz2 mate-panel-772a237b471b8a3a6d7e0dceaec5561fb81b3583.tar.xz |
Fix applet background for transparency
as proposed by @mbkma
Diffstat (limited to 'libmate-panel-applet')
-rw-r--r-- | libmate-panel-applet/mate-panel-applet.c | 4 |
1 files changed, 4 insertions, 0 deletions
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), |