diff options
author | Philip Langdale <philipl@overt.org> | 2019-11-30 19:48:45 +0800 |
---|---|---|
committer | Philip Langdale <philipl@overt.org> | 2019-11-30 19:56:30 +0800 |
commit | 8614cb38d9f708c785bc4ffefb87673b4dd43564 (patch) | |
tree | da5a40794faea2a1549d3db525dbd1fcaab334c2 /player/lua | |
parent | b67d124dc0f4243b9b8327be61194dce7ff21d65 (diff) | |
download | mpv-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.
Diffstat (limited to 'player/lua')
-rw-r--r-- | player/lua/osc.lua | 1 |
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") |