wayland: Cancel display read before abortOnFatalError

Calling wl_display_cancel_read immediately ensures that other readers
waiting on us will have a chance to wake up and discover the error in a
timely manner.
This commit is contained in:
Kenny Levinsen 2020-01-14 19:42:15 +01:00
parent 8f9bbeabd7
commit f6b03f106c

2
glfw/wl_window.c vendored
View File

@ -782,8 +782,8 @@ handleEvents(monotonic_t timeout)
errno = 0;
if (wl_display_flush(display) < 0 && errno != EAGAIN)
{
abortOnFatalError(errno);
wl_display_cancel_read(display);
abortOnFatalError(errno);
return;
}