aboutsummaryrefslogtreecommitdiff
path: root/swaylock/render.c
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-05-20 14:04:30 +0100
committerGitHub <noreply@github.com>2018-05-20 14:04:30 +0100
commitcab0dd8281daecfb4ef2452fddc4b7aae9143fb7 (patch)
tree9ce53265d014560bf670d2bb9844e4f37e28e60b /swaylock/render.c
parent1afbfc94f4efb2ec6b021c224b6f432c625970e8 (diff)
parent836123329504af8b4fd735063eb44690a23e626e (diff)
Merge pull request #1821 from RyanDwyer/swaylock-multiple-images
Swaylock: Allow per-output images
Diffstat (limited to 'swaylock/render.c')
-rw-r--r--swaylock/render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/swaylock/render.c b/swaylock/render.c
index 7d9d25a5..cc40f4e9 100644
--- a/swaylock/render.c
+++ b/swaylock/render.c
@@ -23,7 +23,7 @@ void render_frame(struct swaylock_surface *surface) {
cairo_t *cairo = surface->current_buffer->cairo;
cairo_identity_matrix(cairo);
- if (state->args.mode == BACKGROUND_MODE_SOLID_COLOR) {
+ if (state->args.mode == BACKGROUND_MODE_SOLID_COLOR || !surface->image) {
cairo_set_source_u32(cairo, state->args.color);
cairo_paint(cairo);
} else {