summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-05-20 02:40:00 +0200
committerwm4 <wm4@nowhere>2014-05-20 02:40:28 +0200
commit2f65f0e2548f95b3b8ba6620efe6c0e3cb02420b (patch)
treebefd281e20fca19e7acdd9be08d2aeef445c23b5 /options
parent15c22fb0eb1e29a5dfc04b07dda958d6c415d5c1 (diff)
downloadmpv-2f65f0e2548f95b3b8ba6620efe6c0e3cb02420b.tar.bz2
mpv-2f65f0e2548f95b3b8ba6620efe6c0e3cb02420b.tar.xz
input: allow disabling window dragging with --no-window-dragging
Requested in github issue #608.
Diffstat (limited to 'options')
-rw-r--r--options/options.c3
-rw-r--r--options/options.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index 37bea53472..3b9347ebb8 100644
--- a/options/options.c
+++ b/options/options.c
@@ -448,6 +448,8 @@ const m_option_t mp_opts[] = {
OPT_FLAG("ontop", vo.ontop, M_OPT_FIXED),
OPT_FLAG("border", vo.border, M_OPT_FIXED),
+ OPT_FLAG("window-dragging", allow_win_drag, CONF_GLOBAL),
+
OPT_CHOICE("softvol", softvol, 0,
({"no", SOFTVOL_NO},
{"yes", SOFTVOL_YES},
@@ -662,6 +664,7 @@ const struct MPOpts mp_default_opts = {
.WinID = -1,
.x11_netwm = 1,
},
+ .allow_win_drag = 1,
.wintitle = "mpv - ${media-title}",
.heartbeat_interval = 30.0,
.stop_screensaver = 1,
diff --git a/options/options.h b/options/options.h
index d512089b3a..5da933d41d 100644
--- a/options/options.h
+++ b/options/options.h
@@ -74,6 +74,7 @@ typedef struct MPOpts {
int gapless_audio;
mp_vo_opts vo;
+ int allow_win_drag;
char *wintitle;
int force_rgba_osd;