From 8614cb38d9f708c785bc4ffefb87673b4dd43564 Mon Sep 17 00:00:00 2001 From: Philip Langdale Date: Sat, 30 Nov 2019 19:48:45 +0800 Subject: 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. --- player/lua/osc.lua | 1 + 1 file changed, 1 insertion(+) 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") -- cgit v1.2.3