Linux: Fix regression that broke drag and drop from GTK applications

Fixes #9656
This commit is contained in:
Kovid Goyal
2026-03-13 20:19:33 +05:30
parent a97f468a02
commit e72f49952d
3 changed files with 5 additions and 2 deletions

2
glfw/wl_window.c vendored
View File

@@ -2577,7 +2577,7 @@ _glfwPlatformReadAvailableDropData(GLFWwindow *w, GLFWDropEvent *ev, char *buffe
for (size_t o = 0; o < offer->dd_count; o++) {
if (offer->requested_drop_data[o].fd == fd) {
ssize_t ret;
do { ret = read(fd, buffer, sz); } while (ret < 0 && errno == EINTR);
do { ret = read(fd, buffer, sz); } while (ret < 0 && (errno == EINTR || errno == EAGAIN));
if (ret <= 0) removeWatch(&_glfw.wl.eventLoopData, offer->requested_drop_data[o].watch_id);
return ret < 0 ? -errno : ret;
}