From 6e075121cd8a7f6b7e20246eccc9586cef3834a6 Mon Sep 17 00:00:00 2001 From: William Wold Date: Wed, 11 Nov 2020 14:51:33 -0800 Subject: Don't try to use transparent color if not supported --- mate-panel/panel-background.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); -- cgit v1.2.1