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
1 changed files with 2 additions and 0 deletions

View File

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