From 9b4b3905885777b7e419b99e2a21f1cd1629c167 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 14 Dec 2023 11:32:46 +0100 Subject: [PATCH] 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. --- main.c | 1 - 1 file changed, 1 deletion(-) 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); } }