Actually, we should use text/plain rather than text/uri-list since we are already converting to filesystem paths

This commit is contained in:
Kovid Goyal 2020-03-19 13:40:02 +05:30
parent ab9a36f8c1
commit 372d2008a6
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -1164,7 +1164,7 @@ - (BOOL)performDragOperation:(id <NSDraggingInfo>)sender
id obj = objs[i];
if ([obj isKindOfClass:[NSURL class]]) {
const char *path = [obj fileSystemRepresentation];
_glfwInputDrop(window, "text/uri-list", path, strlen(path));
_glfwInputDrop(window, "text/plain;charset=utf-8", path, strlen(path));
} else if ([obj isKindOfClass:[NSString class]]) {
const char *text = [obj UTF8String];
_glfwInputDrop(window, "text/plain;charset=utf-8", text, strlen(text));