From cd706658034e67208705a9baa886ebc018de9326 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 15 Mar 2016 22:43:06 +0100 Subject: input: accept plain text for drag&drop This will work for the X11 backend. It could be easily extended to Wayland too, maybe. --- input/event.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'input') diff --git a/input/event.c b/input/event.c index a15bc11919..188e800699 100644 --- a/input/event.c +++ b/input/event.c @@ -82,5 +82,12 @@ int mp_event_get_mime_type_score(struct input_ctx *ictx, const char *mime_type) // X11 and Wayland file list format. if (strcmp(mime_type, "text/uri-list") == 0) return 10; + // Just text; treat it the same for convenience. + if (strcmp(mime_type, "text/plain;charset=utf-8") == 0) + return 5; + if (strcmp(mime_type, "text/plain") == 0) + return 4; + if (strcmp(mime_type, "text") == 0) + return 0; return -1; } -- cgit v1.2.3