summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2019-11-30 19:48:45 +0800
committerPhilip Langdale <philipl@overt.org>2019-11-30 19:56:30 +0800
commit8614cb38d9f708c785bc4ffefb87673b4dd43564 (patch)
treeda5a40794faea2a1549d3db525dbd1fcaab334c2
parentb67d124dc0f4243b9b8327be61194dce7ff21d65 (diff)
downloadmpv-8614cb38d9f708c785bc4ffefb87673b4dd43564.tar.bz2
mpv-8614cb38d9f708c785bc4ffefb87673b4dd43564.tar.xz
osc: ensure the window-controls mouse area is initially zero sized
This is necessary to avoid breaking input behaviour in the 'idle' state when not playing a video. Otherwise, the mouse area starts off covering the whole window and blocks normal input.
-rw-r--r--player/lua/osc.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/player/lua/osc.lua b/player/lua/osc.lua
index 4862ec918c..a7cc62a91e 100644
--- a/player/lua/osc.lua
+++ b/player/lua/osc.lua
@@ -2567,3 +2567,4 @@ mp.register_script_message("osc-visibility", visibility_mode)
mp.add_key_binding(nil, "visibility", function() visibility_mode("cycle") end)
set_virt_mouse_area(0, 0, 0, 0, "input")
+set_virt_mouse_area(0, 0, 0, 0, "window-controls")