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

View File

@@ -169,12 +169,16 @@ typedef struct _GLFWwindowNS
GLFWcocoarenderframefun resizeCallback;
// Current drag operation type for NSDraggingSource
GLFWDragOperationType dragOperationType;
int dragOperations; // Bitfield of GLFWDragOperationType
// Cached MIME types from drag enter (for move events)
const char** dragMimes;
int dragMimeCount; // Current count of MIME types (may be reduced by callback)
int dragMimeArraySize; // Original array size for proper cleanup
// Drag source state
char** sourceMimes; // Array of MIME type strings for drag source
int sourceMimeCount; // Number of source MIME types
} _GLFWwindowNS;
// Cocoa-specific global data