Initialize indicator size to zero

Initializing to 1 is incorrect when the surface scale is > 1.
This commit is contained in:
Simon Ser 2021-02-10 17:42:36 +01:00
parent 691415bf95
commit 05325b1197

4
main.c
View File

@ -170,8 +170,8 @@ static void layer_surface_configure(void *data,
struct swaylock_surface *surface = data;
surface->width = width;
surface->height = height;
surface->indicator_width = 1;
surface->indicator_height = 1;
surface->indicator_width = 0;
surface->indicator_height = 0;
zwlr_layer_surface_v1_ack_configure(layer_surface, serial);
render_frame_background(surface);
render_frame(surface);