diff options
author | Philip Langdale <philipl@overt.org> | 2019-12-02 11:01:22 +0800 |
---|---|---|
committer | Philip Langdale <philipl@overt.org> | 2019-12-02 11:04:43 +0800 |
commit | 193b6fd8dd541d9628c49881a80f9ee02b50b99e (patch) | |
tree | ed4991f7534fc7341230765468aa6e326a410c39 /player | |
parent | 7da15ca9bdf2393760880f148c4a7101ef11941a (diff) | |
download | mpv-193b6fd8dd541d9628c49881a80f9ee02b50b99e.tar.bz2 mpv-193b6fd8dd541d9628c49881a80f9ee02b50b99e.tar.xz |
osc: don't show error if windowcontrols=yes
I always intended for this to be accepted and mean "right" but I
made it show an error for any value that's not explicitly
recognised (while considering all unrecognised values to mean "right").
So let's explicitly recognise "yes".
Diffstat (limited to 'player')
-rw-r--r-- | player/lua/osc.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/player/lua/osc.lua b/player/lua/osc.lua index 2c4a9d9558..8223bc77c1 100644 --- a/player/lua/osc.lua +++ b/player/lua/osc.lua @@ -985,7 +985,8 @@ function window_controls(alignment, topbar) if alignment == "left" then controlbox_left = wc_geo.x titlebox_left = wc_geo.x + controlbox_w + 5 - elseif alignment == "right" then + elseif alignment == "right" or + alignment == "yes" then -- Already default else msg.error("Invalid setting \""..alignment.."\" for windowcontrols") |