summaryrefslogtreecommitdiffstats
path: root/options/options.c
diff options
context:
space:
mode:
authorAkemi <der.richter@gmx.de>2017-02-13 20:08:43 +0100
committerAkemi <der.richter@gmx.de>2017-02-13 22:49:11 +0100
commit64b0d81c32d90fe29485bdb218fb76608b9aa31b (patch)
treecff0ad349d3d85e8207c5c05b3fcbbe21657fd96 /options/options.c
parent34b7d523173a0db0f04fa6904f816e0033662802 (diff)
downloadmpv-64b0d81c32d90fe29485bdb218fb76608b9aa31b.tar.bz2
mpv-64b0d81c32d90fe29485bdb218fb76608b9aa31b.tar.xz
cocoa: add --ontop-level option for modifying ontop window level
since there are different views on what ontop is, we make the ontop window level modifiable. at the moment only support for macOS was added. the default for macOS was changed from 'system' to 'window' since this fixes an unwanted behaviour in fullscreen and in general causes less issues with expected behaviour. Fixes #2376 #3974
Diffstat (limited to 'options/options.c')
-rw-r--r--options/options.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/options/options.c b/options/options.c
index 0bb36ad3fc..d33c2e05d1 100644
--- a/options/options.c
+++ b/options/options.c
@@ -160,6 +160,8 @@ static const m_option_t mp_vo_opt_list[] = {
OPT_FLAG("taskbar-progress", taskbar_progress, 0),
OPT_FLAG("snap-window", snap_window, 0),
OPT_FLAG("ontop", ontop, 0),
+ OPT_CHOICE_OR_INT("ontop-level", ontop_level, 0, 0, INT_MAX,
+ ({"window", -1}, {"system", -2})),
OPT_FLAG("border", border, 0),
OPT_FLAG("fit-border", fit_border, 0),
OPT_FLAG("on-all-workspaces", all_workspaces, 0),
@@ -233,6 +235,7 @@ const struct m_sub_options vo_sub_opts = {
.window_scale = 1.0,
.x11_bypass_compositor = 2,
.mmcss_profile = "Playback",
+ .ontop_level = -1,
},
};