Wayland: On dispatch error cancel read before running fatal error handlers

Might help #1722
This commit is contained in:
Kovid Goyal 2020-01-14 19:48:28 +05:30
parent 68e00bc8e1
commit ac72ac7af2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

2
glfw/wl_window.c vendored
View File

@ -768,8 +768,8 @@ handleEvents(monotonic_t timeout)
if (num_dispatched < 0) {
if (errno == EAGAIN) continue;
int last_error = wl_display_get_error(display);
if (last_error) abortOnFatalError(last_error);
wl_display_cancel_read(display);
if (last_error) abortOnFatalError(last_error);
return;
}
break;