Cancel read if dispatch_pending fails

This commit is contained in:
Kovid Goyal 2019-07-20 14:32:57 +05:30
parent 38f77144fa
commit 4096caba64
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

1
glfw/wl_window.c vendored
View File

@ -756,6 +756,7 @@ handleEvents(double timeout)
if (errno == EAGAIN) continue;
int last_error = wl_display_get_error(display);
if (last_error) abortOnFatalError(last_error);
wl_display_cancel_read(display);
return;
}
break;