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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mate-panel/panel-background.c b/mate-panel/panel-background.c
index 8765c2ea..d7b61f64 100644
--- a/mate-panel/panel-background.c
+++ b/mate-panel/panel-background.c
@@ -341,7 +341,7 @@ composite_image_onto_desktop (PanelBackground *background)
surface = gdk_window_create_similar_surface (background->window,
CAIRO_CONTENT_COLOR_ALPHA,
width, height);
- if (cairo_surface_status (surface)) {
+ if (cairo_surface_status (surface) != CAIRO_STATUS_SUCCESS) {
cairo_surface_destroy (surface);
return NULL;
}