From cef5694f9676d812d61f4299442bccec0f2feb7a Mon Sep 17 00:00:00 2001 From: tomasklaen Date: Fri, 8 Dec 2023 17:38:50 +0100 Subject: [PATCH] fix: no window border on new mpv windows versions There's a lot of `title-bar` interaction weirdness on windows. When disabling it on newer mpv versions, one version hides borders, other doesn't. So let's just pretend this setting does what it's supposed to and what everyone would expect, and only hides the title bar without touching the border. People can always disable uosc's window border with other options if they need to. --- src/uosc/elements/WindowBorder.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/src/uosc/elements/WindowBorder.lua b/src/uosc/elements/WindowBorder.lua index 730c2caf..c8726276 100644 --- a/src/uosc/elements/WindowBorder.lua +++ b/src/uosc/elements/WindowBorder.lua @@ -12,7 +12,6 @@ end function WindowBorder:decide_enabled() self.enabled = options.window_border_size > 0 and not state.fullormaxed and not state.border - and (state.platform ~= 'windows' or state.title_bar ~= true) self.size = self.enabled and round(options.window_border_size * state.scale) or 0 end