From 05325b1197f9921f7d03096173589e5c06411ebb Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Wed, 10 Feb 2021 17:42:36 +0100 Subject: Initialize indicator size to zero Initializing to 1 is incorrect when the surface scale is > 1. --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 2624f74..49fb418 100644 --- a/main.c +++ b/main.c @@ -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); -- cgit v1.2.3