diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-05-13 20:21:37 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2018-05-13 20:21:37 -0400 |
commit | 270c1ee7e507f1d2960920a7f4f0cc70f4e13d26 (patch) | |
tree | 9b47a1f1210c49af91b3d09b60b0e3536b2109c8 /swayidle | |
parent | swayidle: use wl_event_loop_dispatch_idle (diff) | |
download | sway-270c1ee7e507f1d2960920a7f4f0cc70f4e13d26.tar.gz sway-270c1ee7e507f1d2960920a7f4f0cc70f4e13d26.tar.zst sway-270c1ee7e507f1d2960920a7f4f0cc70f4e13d26.zip |
Actually fix swayidle
I also didn't test this commit though so who knows
Diffstat (limited to 'swayidle')
-rw-r--r-- | swayidle/main.c | 4 |
1 files 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[]) { | |||
407 | wl_event_loop_add_fd(state.event_loop, wl_display_get_fd(state.display), | 407 | wl_event_loop_add_fd(state.event_loop, wl_display_get_fd(state.display), |
408 | WL_EVENT_READABLE, display_event, NULL); | 408 | WL_EVENT_READABLE, display_event, NULL); |
409 | 409 | ||
410 | while (1) { | 410 | while (wl_event_loop_dispatch(state.event_loop, -1) != 1) { |
411 | wl_event_loop_dispatch_idle(state.event_loop); | 411 | // This space intentionally left blank |
412 | } | 412 | } |
413 | 413 | ||
414 | sway_terminate(0); | 414 | sway_terminate(0); |