diff options
| author | Simon Ser <contact@emersion.fr> | 2023-12-14 11:32:46 +0100 |
|---|---|---|
| committer | Kenny Levinsen <kl@kl.wtf> | 2023-12-14 11:52:28 +0100 |
| commit | 9b4b3905885777b7e419b99e2a21f1cd1629c167 (patch) | |
| tree | 5af4d074fa717aa2b7dfddadf351597a71dc1383 | |
| parent | ba921312c538e2857ef1bc9e8a6f3bbb5799cff6 (diff) | |
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.
| -rw-r--r-- | main.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -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); } } |
