From 2f65f0e2548f95b3b8ba6620efe6c0e3cb02420b Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 20 May 2014 02:40:00 +0200 Subject: input: allow disabling window dragging with --no-window-dragging Requested in github issue #608. --- options/options.c | 3 +++ options/options.h | 1 + 2 files changed, 4 insertions(+) (limited to 'options') 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; -- cgit v1.2.3