mirror of https://github.com/mpv-player/mpv
osc: fix window dragging with showwindowed=no
initialise OSC with a zero mouse area so mp_input_test_dragging returns a proper value. Fixes #1819
This commit is contained in:
parent
2292501533
commit
55fb4cb3f6
|
@ -2310,3 +2310,5 @@ end
|
||||||
visibility_mode(user_opts.visibility, true)
|
visibility_mode(user_opts.visibility, true)
|
||||||
mp.register_script_message("osc-visibility", visibility_mode)
|
mp.register_script_message("osc-visibility", visibility_mode)
|
||||||
mp.add_key_binding("del", function() visibility_mode("cycle") end)
|
mp.add_key_binding("del", function() visibility_mode("cycle") end)
|
||||||
|
|
||||||
|
set_virt_mouse_area(0, 0, 0, 0, "input")
|
||||||
|
|
Loading…
Reference in New Issue