Prevent attaching and committing the surface twice
This commit is contained in:
parent
4088033ff6
commit
7ac62ebda1
1
render.c
1
render.c
@ -321,6 +321,7 @@ void render_frame(struct swaylock_surface *surface) {
|
|||||||
surface->indicator_width = new_width;
|
surface->indicator_width = new_width;
|
||||||
surface->indicator_height = new_height;
|
surface->indicator_height = new_height;
|
||||||
render_frame(surface);
|
render_frame(surface);
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
wl_surface_set_buffer_scale(surface->child, surface->scale);
|
wl_surface_set_buffer_scale(surface->child, surface->scale);
|
||||||
|
Loading…
Reference in New Issue
Block a user