Port Cocoa drag source backend to new API

This commit is contained in:
Kovid Goyal
2026-02-18 11:20:17 +05:30
parent e5eb63fcd0
commit a2b7a0cd6d
9 changed files with 298 additions and 459 deletions

View File

@@ -178,12 +178,6 @@ typedef struct _GLFWwindowNS
// Cached MIME types from drag enter (for move events)
_GLFWDropData drop_data;
// Pending drag source data requests (for cleanup on cancellation)
// Current drag operation type for NSDraggingSource
int dragOperations; // Bitfield of GLFWDragOperationType
GLFWDragSourceData** pendingDragSourceData;
int pendingDragSourceDataCount;
int pendingDragSourceDataCapacity;
} _GLFWwindowNS;
// Cocoa-specific global data
@@ -221,7 +215,6 @@ typedef struct _GLFWlibraryNS
// the callback to handle url open events
GLFWhandleurlopen url_open_callback;
} _GLFWlibraryNS;
// Cocoa-specific per-monitor data