summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-11-18 21:37:38 +0100
committerwm4 <wm4@nowhere>2015-11-18 21:48:29 +0100
commit516e7d19da137e7b5b8d19c6f0e093823ecdb3a4 (patch)
tree6bbaf5618bd995471f5a68bc108316d8ed234cd5 /options
parent58caf577f1949655e2eeaf3d7c565eedb6ee2805 (diff)
downloadmpv-516e7d19da137e7b5b8d19c6f0e093823ecdb3a4.tar.bz2
mpv-516e7d19da137e7b5b8d19c6f0e093823ecdb3a4.tar.xz
x11: request bypassing compositor
Maybe this is a good idea. Also add an option to disable it again, for the sake of testing. Fixes #2502.
Diffstat (limited to 'options')
-rw-r--r--options/options.c2
-rw-r--r--options/options.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index fb9237938c..d344f48b1a 100644
--- a/options/options.c
+++ b/options/options.c
@@ -454,6 +454,7 @@ const m_option_t mp_opts[] = {
#if HAVE_X11
OPT_CHOICE("x11-netwm", vo.x11_netwm, 0,
({"auto", 0}, {"no", -1}, {"yes", 1})),
+ OPT_FLAG("x11-bypass-compositor", vo.x11_bypass_compositor, 0),
#endif
OPT_STRING("heartbeat-cmd", heartbeat_cmd, 0),
OPT_FLOAT("heartbeat-interval", heartbeat_interval, CONF_MIN, 0),
@@ -699,6 +700,7 @@ const struct MPOpts mp_default_opts = {
.border = 1,
.WinID = -1,
.window_scale = 1.0,
+ .x11_bypass_compositor = 1,
},
.allow_win_drag = 1,
.wintitle = "${?media-title:${media-title}}${!media-title:No file} - mpv",
diff --git a/options/options.h b/options/options.h
index 7c9046f50b..78f19f7b2f 100644
--- a/options/options.h
+++ b/options/options.h
@@ -19,6 +19,7 @@ typedef struct mp_vo_opts {
int fs_black_out_screens;
char *winname;
int x11_netwm;
+ int x11_bypass_compositor;
int native_keyrepeat;
float panscan;