Refactor drag API to make it asynchronous

Fixes #9477
This commit is contained in:
copilot-swe-agent[bot]
2026-02-05 15:00:53 +00:00
committed by Kovid Goyal
parent a7b8e880c9
commit 5ea35cbbfc
12 changed files with 856 additions and 271 deletions

8
glfw/wl_platform.h vendored
View File

@@ -412,10 +412,10 @@ typedef struct _GLFWlibraryWayland
// Drag operation state
struct {
struct wl_data_source* source;
unsigned char** items_data;
size_t* items_sizes;
char** items_mimes;
int item_count;
char** mimes; // Array of MIME type strings
int mime_count; // Number of MIME types
_GLFWwindow* window; // Window that initiated the drag
GLFWDragSourceData* current_request; // Current data request being processed
} drag;
} _GLFWlibraryWayland;