From 7ac62ebda1858875fc5f2de4ed694072aa739eb7 Mon Sep 17 00:00:00 2001 From: Michael Swiger Date: Mon, 5 Jul 2021 13:52:47 -0700 Subject: [PATCH] Prevent attaching and committing the surface twice --- render.c | 1 + 1 file changed, 1 insertion(+) diff --git a/render.c b/render.c index 8c1f110..3dec743 100644 --- a/render.c +++ b/render.c @@ -321,6 +321,7 @@ void render_frame(struct swaylock_surface *surface) { surface->indicator_width = new_width; surface->indicator_height = new_height; render_frame(surface); + return; } wl_surface_set_buffer_scale(surface->child, surface->scale);