From 0359bbe4be4d49f0fce13ed9c53c83eeebc88526 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 23 Oct 2018 11:08:13 +0530 Subject: [PATCH] ... --- kitty/child-monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/child-monitor.c b/kitty/child-monitor.c index 600095e43..925ec9d7e 100644 --- a/kitty/child-monitor.c +++ b/kitty/child-monitor.c @@ -1007,7 +1007,7 @@ io_loop(void *data) { if (has_pending_wakeups) { now = monotonic(); double time_delta = OPT(input_delay) - (now - last_main_loop_wakeup_at); - if (time_delta > 0) ret = poll(fds, self->count + EXTRA_FDS, -1); + if (time_delta > 0) ret = poll(fds, self->count + EXTRA_FDS, time_delta); else ret = 0; } else { ret = poll(fds, self->count + EXTRA_FDS, -1);