1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 23:02:37 +00:00

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:
Akemi 2017-02-19 21:33:00 +01:00
parent 2292501533
commit 55fb4cb3f6

View File

@ -2310,3 +2310,5 @@ end
visibility_mode(user_opts.visibility, true)
mp.register_script_message("osc-visibility", visibility_mode)
mp.add_key_binding("del", function() visibility_mode("cycle") end)
set_virt_mouse_area(0, 0, 0, 0, "input")