Created
August 18, 2019 15:12
-
-
Save Romern/04b6ae03c5bd1d2d4a6e1e89537e48a6 to your computer and use it in GitHub Desktop.
Patch to default "drag-and-drop"-ing of files onto mpv's window will add it to the playlist instead of replacing it. When I want to replace it, I usually just close the window and open the files in a new mpv session, so I don't see the point really
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/video/out/x11_common.c 2019-08-18 17:07:38.048011729 +0200 | |
+++ b/video/out/x11_common.c 2019-08-18 17:05:50.504672000 +0200 | |
@@ -920,7 +920,7 @@ | |
if (prop) { | |
enum mp_dnd_action action = | |
x11->dnd_requested_action == XA(x11, XdndActionCopy) ? | |
- DND_REPLACE : DND_APPEND; | |
+ DND_APPEND : DND_REPLACE; | |
char *mime_type = x11_dnd_mime_type(x11, x11->dnd_requested_format); | |
MP_VERBOSE(x11, "Dropping type: %s (%s)\n", |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment