Fix macOS drag MOVE events: check mimes_count not drag_accepted in draggingUpdated

Agent-Logs-Url: https://github.com/kovidgoyal/kitty/sessions/c5e95934-f4e3-4ba9-8b12-5240a853fd3a

Co-authored-by: kovidgoyal <1308621+kovidgoyal@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-05-06 10:33:13 +00:00 committed by GitHub
parent 5ec8c52025
commit 6f5ac9f342
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1590,7 +1590,7 @@ reset_drop_copy_mimes(_GLFWDropData *d) {
- (NSDragOperation)draggingUpdated:(id <NSDraggingInfo>)sender
{
if (!window->ns.drop_data.drag_accepted) return NSDragOperationNone;
if (!window->ns.drop_data.mimes_count) return NSDragOperationNone;
const NSRect contentRect = [window->ns.view frame];
const NSPoint pos = [sender draggingLocation];
double xpos = pos.x;