From 270c1ee7e507f1d2960920a7f4f0cc70f4e13d26 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Sun, 13 May 2018 20:21:37 -0400 Subject: Actually fix swayidle I also didn't test this commit though so who knows --- swayidle/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swayidle/main.c b/swayidle/main.c index 935143f0..60235280 100644 --- a/swayidle/main.c +++ b/swayidle/main.c @@ -407,8 +407,8 @@ int main(int argc, char *argv[]) { wl_event_loop_add_fd(state.event_loop, wl_display_get_fd(state.display), WL_EVENT_READABLE, display_event, NULL); - while (1) { - wl_event_loop_dispatch_idle(state.event_loop); + while (wl_event_loop_dispatch(state.event_loop, -1) != 1) { + // This space intentionally left blank } sway_terminate(0); -- cgit v1.2.3