win32: add an option to control window title bar state

Fixes: #11432
This commit is contained in:
Kacper Michajłow
2023-03-19 06:38:32 +01:00
committed by Dudemanguy
parent 2c738ca54b
commit ee24dd0419
5 changed files with 15 additions and 1 deletions

View File

@@ -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,

View File

@@ -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;