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

12
glfw/x11_platform.h vendored
View File

@@ -394,13 +394,13 @@ typedef struct _GLFWlibraryX11
// Drag source state
struct {
Window source_window;
unsigned char** items_data;
size_t* items_sizes;
char** items_mimes;
int item_count;
Atom* type_atoms;
Atom action_atom; // XdndActionCopy, XdndActionMove, or XdndActionLink
char** mimes; // Array of MIME type strings
int mime_count; // Number of MIME types
Atom* type_atoms; // Atoms for each MIME type
Atom action_atom; // XdndActionCopy, XdndActionMove, or XdndActionLink
bool active;
_GLFWwindow* window; // Window that initiated the drag
GLFWDragSourceData* current_request; // Current data request being processed
} drag;
struct {