diff options
author | David Vaughan <david@davidv.xyz> | 2024-02-03 19:41:43 -0800 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2024-02-26 02:03:21 +0000 |
commit | a8a314b829498c55aed393d4bc7f4f7bf9e92362 (patch) | |
tree | c220248353f4a8c2f0feb74707bb4eb317653c14 /options | |
parent | 432256e5d2ccee8806023f03aea076f46d9cc9ea (diff) | |
download | mpv-a8a314b829498c55aed393d4bc7f4f7bf9e92362.tar.bz2 mpv-a8a314b829498c55aed393d4bc7f4f7bf9e92362.tar.xz |
input: add insert-next support for drag-and-drop
This commit adds a DND_INSERT_NEXT action option for drag-and-drop,
allows for selecting it through the --drag-and-drop=insert-next option,
and adds the necessary plumbing to make that happen when something is
dragged onto the player.
Diffstat (limited to 'options')
-rw-r--r-- | options/options.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/options/options.c b/options/options.c index c380bce808..0370294dbd 100644 --- a/options/options.c +++ b/options/options.c @@ -112,7 +112,9 @@ static const m_option_t mp_vo_opt_list[] = { {"vo", OPT_SETTINGSLIST(video_driver_list, &vo_obj_list)}, {"taskbar-progress", OPT_BOOL(taskbar_progress)}, {"drag-and-drop", OPT_CHOICE(drag_and_drop, {"no", -2}, {"auto", -1}, - {"replace", DND_REPLACE}, {"append", DND_APPEND})}, + {"replace", DND_REPLACE}, + {"append", DND_APPEND}, + {"insert-next", DND_INSERT_NEXT})}, {"snap-window", OPT_BOOL(snap_window)}, {"ontop", OPT_BOOL(ontop)}, {"ontop-level", OPT_CHOICE(ontop_level, {"window", -1}, {"system", -2}, |