Refactor drop API and implement it on Wayland

This commit is contained in:
Kovid Goyal
2026-02-08 13:34:00 +05:30
parent 0ea65903b8
commit 3cf24afdc0
14 changed files with 516 additions and 682 deletions

View File

@@ -31,7 +31,6 @@ update_fds(EventLoopData *eld) {
}
}
static id_type watch_counter = 0;
id_type
addWatch(EventLoopData *eld, const char* name, int fd, int events, int enabled, watch_callback_func cb, void *cb_data) {
@@ -39,6 +38,7 @@ addWatch(EventLoopData *eld, const char* name, int fd, int events, int enabled,
_glfwInputError(GLFW_PLATFORM_ERROR, "Too many watches added");
return 0;
}
static id_type watch_counter = 0;
Watch *w = eld->watches + eld->watches_count++;
w->name = name;
w->fd = fd; w->events = events; w->enabled = enabled;