mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-06 09:15:57 +02:00
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:
committed by
GitHub
parent
5ec8c52025
commit
6f5ac9f342
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user