summaryrefslogtreecommitdiffstats
path: root/swaybg
diff options
context:
space:
mode:
Diffstat (limited to 'swaybg')
-rw-r--r--swaybg/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/swaybg/main.c b/swaybg/main.c
index 5b0d0458..742669ef 100644
--- a/swaybg/main.c
+++ b/swaybg/main.c
@@ -73,6 +73,10 @@ static void render_frame(struct swaybg_state *state) {
73 return; 73 return;
74 } 74 }
75 cairo_t *cairo = state->current_buffer->cairo; 75 cairo_t *cairo = state->current_buffer->cairo;
76 cairo_save(cairo);
77 cairo_set_operator(cairo, CAIRO_OPERATOR_CLEAR);
78 cairo_paint(cairo);
79 cairo_restore(cairo);
76 if (state->args->mode == BACKGROUND_MODE_SOLID_COLOR) { 80 if (state->args->mode == BACKGROUND_MODE_SOLID_COLOR) {
77 cairo_set_source_u32(cairo, state->context.color); 81 cairo_set_source_u32(cairo, state->context.color);
78 cairo_paint(cairo); 82 cairo_paint(cairo);