summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
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 6d38af53b4..0b1c58d9a6 100644
--- a/options/options.c
+++ b/options/options.c
@@ -175,6 +175,8 @@ static const m_option_t mp_vo_opt_list[] = {
{"x11-netwm", OPT_CHOICE(x11_netwm, {"auto", 0}, {"no", -1}, {"yes", 1})},
{"x11-bypass-compositor", OPT_CHOICE(x11_bypass_compositor,
{"no", 0}, {"yes", 1}, {"fs-only", 2}, {"never", 3})},
+ {"x11-present", OPT_CHOICE(x11_present,
+ {"no", 0}, {"auto", 1}, {"yes", 2})},
#endif
#if HAVE_WIN32_DESKTOP
{"vo-mmcss-profile", OPT_STRING(mmcss_profile)},
@@ -212,6 +214,7 @@ const struct m_sub_options vo_sub_opts = {
.WinID = -1,
.window_scale = 1.0,
.x11_bypass_compositor = 2,
+ .x11_present = 1,
.mmcss_profile = "Playback",
.ontop_level = -1,
.timing_offset = 0.050,
diff --git a/options/options.h b/options/options.h
index 4eb5ef07c7..f38f3b6bfb 100644
--- a/options/options.h
+++ b/options/options.h
@@ -29,6 +29,7 @@ typedef struct mp_vo_opts {
char *appid;
int x11_netwm;
int x11_bypass_compositor;
+ int x11_present;
int native_keyrepeat;
float panscan;