summaryrefslogtreecommitdiff
path: root/mate-panel/panel-background.c
diff options
context:
space:
mode:
Diffstat (limited to 'mate-panel/panel-background.c')
-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);