From 38f77144fad1c7a999438adc342dfea9a77eb64b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 20 Jul 2019 14:09:09 +0530 Subject: [PATCH] Wayland: dont abort the event handler early if there are no pending events from the compositor. This ensures that the tick callback and other event sources are dispatched. --- glfw/wl_window.c | 1 - 1 file changed, 1 deletion(-) diff --git a/glfw/wl_window.c b/glfw/wl_window.c index 13b3dac69..0c630ab25 100644 --- a/glfw/wl_window.c +++ b/glfw/wl_window.c @@ -752,7 +752,6 @@ handleEvents(double timeout) while(1) { errno = 0; int num_dispatched = wl_display_dispatch_pending(display); - if (num_dispatched == 0) return; if (num_dispatched < 0) { if (errno == EAGAIN) continue; int last_error = wl_display_get_error(display);