From f550fdaa91293fa1dd125b5743728c1d387d21c4 Mon Sep 17 00:00:00 2001 From: Akemi Date: Thu, 27 Jul 2017 21:28:33 +0200 Subject: cocoa: add an option to disable the native macOS fullscreen Fixes #4014 --- options/options.c | 2 ++ options/options.h | 1 + 2 files changed, 3 insertions(+) (limited to 'options') diff --git a/options/options.c b/options/options.c index 7d299a9aa7..b07c576d4f 100644 --- a/options/options.c +++ b/options/options.c @@ -162,6 +162,7 @@ static const m_option_t mp_vo_opt_list[] = { OPT_FLAG("keepaspect", keepaspect, UPDATE_VIDEOPOS), OPT_FLAG("keepaspect-window", keepaspect_window, 0), OPT_FLAG("hidpi-window-scale", hidpi_window_scale, 0), + OPT_FLAG("native-fs", native_fs, 0), #if HAVE_X11 OPT_CHOICE("x11-netwm", x11_netwm, 0, ({"auto", 0}, {"no", -1}, {"yes", 1})), @@ -196,6 +197,7 @@ const struct m_sub_options vo_sub_opts = { .keepaspect = 1, .keepaspect_window = 1, .hidpi_window_scale = 1, + .native_fs = 1, .taskbar_progress = 1, .snap_window = 0, .border = 1, diff --git a/options/options.h b/options/options.h index 4482b0f824..75884a290c 100644 --- a/options/options.h +++ b/options/options.h @@ -40,6 +40,7 @@ typedef struct mp_vo_opts { int keepaspect; int keepaspect_window; int hidpi_window_scale; + int native_fs; int64_t WinID; -- cgit v1.2.3