Skip to content

Commit

Permalink
fix: no window border on new mpv windows versions
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
tomasklaen committed Dec 8, 2023
1 parent 9a02a60 commit cef5694
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/uosc/elements/WindowBorder.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit cef5694

Please # to comment.