Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions glfw/cocoa_platform.h
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,22 @@ typedef struct _GLFWwindowNS
const char** dragMimes;
int dragMimeCount; // Current count of MIME types (may be reduced by callback)
int dragMimeArraySize; // Original array size for proper cleanup

// Mouse event storage for drag operations
id lastMouseDownEvent; // NSEvent* retained
bool mouse_button_pressed;

// Pending drag operation - must be executed within mouseDragged: handler
struct {
bool requested;
id dragItem; // NSDraggingItem* retained
id pasteboardItem; // NSPasteboardItem* retained
} pendingDrag;

// Title text for drag image (when no thumbnail provided)
char* dragTitle;
// Placement of drag image relative to cursor
GLFWDragImagePlacement dragImagePlacement;
} _GLFWwindowNS;

// Cocoa-specific global data
Expand Down
Loading