mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-05-13 08:26:56 +00: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:
parent
5ec8c52025
commit
6f5ac9f342
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue