Fix indicator buffer not resizing after display powers off
This commit is contained in:
parent
9754241080
commit
4088033ff6
2
render.c
2
render.c
@ -310,6 +310,7 @@ void render_frame(struct swaylock_surface *surface) {
|
||||
new_width = extents.width + 2 * box_padding;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Ensure buffer size is multiple of buffer scale - required by protocol
|
||||
new_height += surface->scale - (new_height % surface->scale);
|
||||
@ -321,7 +322,6 @@ void render_frame(struct swaylock_surface *surface) {
|
||||
surface->indicator_height = new_height;
|
||||
render_frame(surface);
|
||||
}
|
||||
}
|
||||
|
||||
wl_surface_set_buffer_scale(surface->child, surface->scale);
|
||||
wl_surface_attach(surface->child, surface->current_buffer->buffer, 0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user