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.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/mate-panel/panel-background.c b/mate-panel/panel-background.c
index bfbc2bcd..9cbcc1a3 100644
--- a/mate-panel/panel-background.c
+++ b/mate-panel/panel-background.c
@@ -440,14 +440,12 @@ composite_color_onto_desktop (PanelBackground *background)
}
cr = cairo_create (surface);
-#if GTK_CHECK_VERSION (3, 0, 0)
+
if(!gdk_window_check_composited_wm(background->window)){
-#endif
gdk_cairo_set_source_pixbuf (cr, background->desktop, 0, 0);
cairo_paint (cr);
-#if GTK_CHECK_VERSION(3, 0, 0)
}
-#endif
+
gdk_cairo_set_source_rgba (cr, &background->color);
cairo_paint (cr);