From 612fb3b59666ec8b550357bd52c6e1949bfc8d04 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 13 Apr 2018 22:34:08 +0530 Subject: [PATCH] Process events when timeout is zero --- kitty/glfw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/glfw.c b/kitty/glfw.c index 63b4f1005..009e696cf 100644 --- a/kitty/glfw.c +++ b/kitty/glfw.c @@ -631,7 +631,7 @@ swap_window_buffers(OSWindow *w) { void event_loop_wait(double timeout) { if (timeout < 0) glfwWaitEvents(); - else if (timeout > 0) glfwWaitEventsTimeout(timeout); + else if (timeout >= 0) glfwWaitEventsTimeout(timeout); } void