summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Wold <[email protected]>2020-11-11 14:51:33 -0800
committerraveit65 <[email protected]>2020-12-04 21:45:39 +0100
commit6e075121cd8a7f6b7e20246eccc9586cef3834a6 (patch)
tree69589a5a0fc65edbe08442057ca5e9cb6faee59a
parent4778fc6bae7ca239912b0a2ae2b367562ae187f9 (diff)
downloadmate-panel-6e075121cd8a7f6b7e20246eccc9586cef3834a6.tar.bz2
mate-panel-6e075121cd8a7f6b7e20246eccc9586cef3834a6.tar.xz
Don't try to use transparent color if not supported
-rw-r--r--mate-panel/panel-background.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/mate-panel/panel-background.c b/mate-panel/panel-background.c
index fc74f03a..57a8dcd7 100644
--- a/mate-panel/panel-background.c
+++ b/mate-panel/panel-background.c
@@ -134,8 +134,14 @@ panel_background_prepare (PanelBackground *background)
break;
case PANEL_BACK_COLOR:
- gdk_window_set_background_rgba (background->window, &background->color);
+ {
+ GdkRGBA color = background->color;
+ if (!gdk_screen_is_composited (gdk_screen_get_default ())) {
+ color.alpha = 1.;
+ }
+ gdk_window_set_background_rgba (background->window, &color);
break;
+ }
case PANEL_BACK_IMAGE:
g_assert (background->composited_pattern);