Prevent attaching and committing the surface twice

This commit is contained in:
Michael Swiger 2021-07-05 13:52:47 -07:00 committed by Simon Ser
parent 4088033ff6
commit 7ac62ebda1

View File

@ -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);