mirror of
https://github.com/swaywm/sway.git
synced 2026-02-25 01:40:48 -05:00
Swaylock: Allow per-output images
This commit is contained in:
parent
1afbfc94f4
commit
9d99e5c2e7
5 changed files with 136 additions and 24 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue