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.
This commit is contained in:
Philip Langdale 2019-11-30 19:48:45 +08:00
parent b67d124dc0
commit 8614cb38d9
1 changed files with 1 additions and 0 deletions

View File

@ -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")