summaryrefslogtreecommitdiffstats
path: root/options
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2023-03-19 06:38:32 +0100
committerDudemanguy <random342@airmail.cc>2023-09-21 23:13:19 +0000
commitee24dd04194aadfda882fd73553cba8d1e734567 (patch)
tree541a5a0b41ca3138317fc580addd7e9d513e7ba4 /options
parent2c738ca54b16cdd1982473672bd39068fcf8d948 (diff)
downloadmpv-ee24dd04194aadfda882fd73553cba8d1e734567.tar.bz2
mpv-ee24dd04194aadfda882fd73553cba8d1e734567.tar.xz
win32: add an option to control window title bar state
Fixes: #11432
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 c53183a6ec..357f043404 100644
--- a/options/options.c
+++ b/options/options.c
@@ -114,6 +114,7 @@ static const m_option_t mp_vo_opt_list[] = {
{"ontop-level", OPT_CHOICE(ontop_level, {"window", -1}, {"system", -2},
{"desktop", -3}), M_RANGE(0, INT_MAX)},
{"border", OPT_BOOL(border)},
+ {"title-bar", OPT_BOOL(title_bar)},
{"on-all-workspaces", OPT_BOOL(all_workspaces)},
{"geometry", OPT_GEOMETRY(geometry)},
{"autofit", OPT_SIZE_BOX(autofit)},
@@ -216,6 +217,7 @@ const struct m_sub_options vo_sub_opts = {
.native_fs = true,
.taskbar_progress = true,
.border = true,
+ .title_bar = true,
.appid = "mpv",
.content_type = -1,
.WinID = -1,
diff --git a/options/options.h b/options/options.h
index a272f46916..ce676840ed 100644
--- a/options/options.h
+++ b/options/options.h
@@ -16,6 +16,7 @@ typedef struct mp_vo_opts {
int ontop_level;
bool fullscreen;
bool border;
+ bool title_bar;
bool all_workspaces;
bool window_minimized;
bool window_maximized;