summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-12-14 11:32:46 +0100
committerKenny Levinsen <kl@kl.wtf>2023-12-14 11:52:28 +0100
commit9b4b3905885777b7e419b99e2a21f1cd1629c167 (patch)
tree5af4d074fa717aa2b7dfddadf351597a71dc1383
parentba921312c538e2857ef1bc9e8a6f3bbb5799cff6 (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.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/main.c b/main.c
index cf072f1..df040e1 100644
--- a/main.c
+++ b/main.c
@@ -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);
}
}