mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-27 10:41:58 +02:00
Cancel read if dispatch_pending fails
This commit is contained in:
1
glfw/wl_window.c
vendored
1
glfw/wl_window.c
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user