mirror of https://github.com/mpv-player/mpv
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:
parent
b67d124dc0
commit
8614cb38d9
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue