Wayland: On dispatch error cancel read before running fatal error handlers
Might help #1722
This commit is contained in:
parent
68e00bc8e1
commit
ac72ac7af2
2
glfw/wl_window.c
vendored
2
glfw/wl_window.c
vendored
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user