diff --git a/glfw/cocoa_window.m b/glfw/cocoa_window.m index 28ea585e5..d1f317618 100644 --- a/glfw/cocoa_window.m +++ b/glfw/cocoa_window.m @@ -4191,7 +4191,10 @@ void _glfwCocoaPostEmptyEvent(void) { NSEvent *currentEvent = [NSApp currentEvent]; if (currentEvent && currentEvent.type == NSEventTypeKeyDown && currentEvent.keyCode == 53) { ev.type = GLFW_DRAG_CANCELLED; - } else ev.type = GLFW_DRAG_DROPPED; + } else { + ev.type = GLFW_DRAG_DROPPED; + ev.drop_maybe_a_cancel = true; + } } break; default: ev.type = GLFW_DRAG_DROPPED; break;