From 59b0fec5089962f65aa2232d1d4aa44524a5a5cb Mon Sep 17 00:00:00 2001 From: Philip Langdale Date: Mon, 9 Dec 2019 20:59:29 -0800 Subject: osc: explicitly re-init the osc on a change in border visibility I had previously wondered whether to do this, but in my testing with x11 and wayland, the osc was being re-inited on a border toggle already so I didn't add it. However, on win32, things are different and there is no re-init when toggling borders. I belive this is because the active window size doesn't change in anyway, while on x11/wayland, toggling the border actually changes the window size - and that trigger a re-init. So, let's just be explicit and request a re-init when the border is toggled. --- player/lua/osc.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/player/lua/osc.lua b/player/lua/osc.lua index b05ee3fed6..4e3f97bea9 100644 --- a/player/lua/osc.lua +++ b/player/lua/osc.lua @@ -2497,6 +2497,7 @@ mp.observe_property("fullscreen", "bool", mp.observe_property("border", "bool", function(name, val) state.border = val + request_init() end ) mp.observe_property("idle-active", "bool", -- cgit v1.2.3