summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2023-06-12 18:09:21 -0500
committerDudemanguy <random342@airmail.cc>2023-07-01 02:06:02 +0000
commit6625a9460819714b50d023f236ac30ee354df3c2 (patch)
treec804a9a7d831489095e02360b64de36808cb7c10 /options/options.c
parentb45be3d6e9d1796513f1f6214ceace8d8ef027ac (diff)
downloadmpv-6625a9460819714b50d023f236ac30ee354df3c2.tar.bz2
mpv-6625a9460819714b50d023f236ac30ee354df3c2.tar.xz
options: add no to drag-and-drop
Suggested by @sfan5. Naturally, "no" disables all drag and drop behavior.
Diffstat (limited to 'options/options.c')
-rw-r--r--options/options.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/options/options.c b/options/options.c
index 955c1e9e32..24160a0a84 100644
--- a/options/options.c
+++ b/options/options.c
@@ -38,6 +38,7 @@
#include "m_config.h"
#include "m_option.h"
#include "common/common.h"
+#include "input/event.h"
#include "stream/stream.h"
#include "video/csputils.h"
#include "video/hwdec.h"
@@ -106,8 +107,8 @@ static const struct m_sub_options screenshot_conf = {
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, {"auto", -1}, {"replace", 0},
- {"append", 1})},
+ {"drag-and-drop", OPT_CHOICE(drag_and_drop, {"no", -2}, {"auto", -1},
+ {"replace", DND_REPLACE}, {"append", DND_APPEND})},
{"snap-window", OPT_BOOL(snap_window)},
{"ontop", OPT_BOOL(ontop)},
{"ontop-level", OPT_CHOICE(ontop_level, {"window", -1}, {"system", -2},