aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBor Grošelj Simić <bor.groseljsimic@telemach.net>2018-07-04 01:53:32 +0200
committerBor Grošelj Simić <bor.groseljsimic@telemach.net>2018-07-04 01:53:32 +0200
commit1d0963737ea1e7e1a2143fef213596b25908e7fe (patch)
treec270bd5ade70144206cfbea88e79306757a8e25f
parent8cc26130a66f533a5cbb8e4833a536dd8798f833 (diff)
Fix #1857
-rw-r--r--swaylock/render.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/swaylock/render.c b/swaylock/render.c
index 2032ddcf..80377b2a 100644
--- a/swaylock/render.c
+++ b/swaylock/render.c
@@ -32,7 +32,9 @@ void render_frame(struct swaylock_surface *surface) {
if (state->args.mode == BACKGROUND_MODE_SOLID_COLOR || !surface->image) {
cairo_set_source_u32(cairo, state->args.color);
+ cairo_set_operator (cairo, CAIRO_OPERATOR_SOURCE);
cairo_paint(cairo);
+ cairo_set_operator (cairo, CAIRO_OPERATOR_OVER);
} else {
render_background_image(cairo, surface->image,
state->args.mode, buffer_width, buffer_height);