From 64b0d81c32d90fe29485bdb218fb76608b9aa31b Mon Sep 17 00:00:00 2001 From: Akemi Date: Mon, 13 Feb 2017 20:08:43 +0100 Subject: 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 --- options/options.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'options/options.c') 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, }, }; -- cgit v1.2.3