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.

This commit is contained in:
Kovid Goyal
2019-07-20 14:09:09 +05:30
parent b8041ce17f
commit 38f77144fa

1
glfw/wl_window.c vendored
View File

@@ -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);