Remove unnecessary wl_display_roundtrip() call

Calling wl_display_roundtrip() from an event handler is a bad
practice in general because it nests multiple dispatches.

We don't need to block here anyways.
This commit is contained in:
Simon Ser 2023-12-14 11:32:46 +01:00 committed by Kenny Levinsen
parent ba921312c5
commit 9b4b390588

1
main.c
View File

@ -239,7 +239,6 @@ static void handle_wl_output_done(void *data, struct wl_output *output) {
struct swaylock_surface *surface = data;
if (!surface->created && surface->state->run_display) {
create_surface(surface);
wl_display_roundtrip(surface->state->display);
}
}