From ad093567e8ce8ace520412086907b9ea64299865 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Michaj=C5=82ow?= Date: Sat, 25 Nov 2023 16:32:37 +0100 Subject: [PATCH] osc: add missing window controls for --title-bar=no --- player/lua/osc.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/player/lua/osc.lua b/player/lua/osc.lua index 06f73878ad..a750d850a6 100644 --- a/player/lua/osc.lua +++ b/player/lua/osc.lua @@ -439,7 +439,7 @@ end function window_controls_enabled() val = user_opts.windowcontrols if val == "auto" then - return not state.border + return not (state.border and state.title_bar) else return val ~= "no" end @@ -2786,6 +2786,12 @@ mp.observe_property("border", "bool", request_init_resize() end ) +mp.observe_property("title-bar", "bool", + function(name, val) + state.title_bar = val + request_init_resize() + end +) mp.observe_property("window-maximized", "bool", function(name, val) state.maximized = val