Swaylock: Allow per-output images

This commit is contained in:
Ryan Dwyer 2018-05-19 08:47:47 +10:00
parent 1afbfc94f4
commit 9d99e5c2e7
5 changed files with 136 additions and 24 deletions

View file

@ -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 {