summaryrefslogtreecommitdiffstats
path: root/player/lua
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-11-23 09:10:51 +0100
committerwm4 <wm4@nowhere>2014-11-23 09:10:51 +0100
commit4cdd3462469dc9c88f73397576c94792b37c23dc (patch)
tree6c9b3e30e1562631a147dc3916d8c215144d37c1 /player/lua
parent1eeca36d5ffbc2cd38766ed1a1cba141c78fd30d (diff)
downloadmpv-4cdd3462469dc9c88f73397576c94792b37c23dc.tar.bz2
mpv-4cdd3462469dc9c88f73397576c94792b37c23dc.tar.xz
input: set mouse area by default for all input
Otherwise, mouse button bindings added by mp.add_key_binding() would be ignored. It's possible that this "breaks" some older scripts using undocumented Lua script functions, but it should be safe otherwise. Fixes #1283.
Diffstat (limited to 'player/lua')
-rw-r--r--player/lua/defaults.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/lua/defaults.lua b/player/lua/defaults.lua
index f995dd40d2..4b3be12ac9 100644
--- a/player/lua/defaults.lua
+++ b/player/lua/defaults.lua
@@ -112,7 +112,7 @@ local function update_key_bindings()
end
mp.input_define_section(section, cfg, flags)
-- TODO: remove the section if the script is stopped
- mp.input_enable_section(section)
+ mp.input_enable_section(section, "allow-hide-cursor|allow-vo-dragging")
end
end