From 8ecf2d37ebd31afaed9f8c3ed952f08a572ddf00 Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Sat, 20 May 2023 16:51:12 -0500 Subject: player: add drag-and-drop option Some platforms (wayland) apparently have a lot of trouble with drag and drop. The default behavior is still the same which is basically obeying what we get from the window manager/compositor, but the --drag-and-drop option allows forcibly overriding the drag and drop behavior. i.e. you can force it to always replace the playlist or append at the end. This only implements this in X11 and Wayland but in theory windows and macos could find this option useful (both hardcode the shift key for appending). Patches welcome. --- options/options.h | 1 + 1 file changed, 1 insertion(+) (limited to 'options/options.h') diff --git a/options/options.h b/options/options.h index c3a5e727ee..dd67af0aa5 100644 --- a/options/options.h +++ b/options/options.h @@ -11,6 +11,7 @@ typedef struct mp_vo_opts { bool taskbar_progress; bool snap_window; + int drag_and_drop; bool ontop; int ontop_level; bool fullscreen; -- cgit v1.2.3