summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2019-12-02 11:01:22 +0800
committerPhilip Langdale <philipl@overt.org>2019-12-02 11:04:43 +0800
commit193b6fd8dd541d9628c49881a80f9ee02b50b99e (patch)
treeed4991f7534fc7341230765468aa6e326a410c39
parent7da15ca9bdf2393760880f148c4a7101ef11941a (diff)
downloadmpv-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".
-rw-r--r--player/lua/osc.lua3
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")