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:
parent
ba921312c5
commit
9b4b390588
1
main.c
1
main.c
@ -239,7 +239,6 @@ static void handle_wl_output_done(void *data, struct wl_output *output) {
|
|||||||
struct swaylock_surface *surface = data;
|
struct swaylock_surface *surface = data;
|
||||||
if (!surface->created && surface->state->run_display) {
|
if (!surface->created && surface->state->run_display) {
|
||||||
create_surface(surface);
|
create_surface(surface);
|
||||||
wl_display_roundtrip(surface->state->display);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user