Skip to content

Commit

Permalink
osc: fix window dragging with showwindowed=no
Browse files Browse the repository at this point in the history
initialise OSC with a zero mouse area so mp_input_test_dragging returns
a proper value.

Fixes mpv-player#1819
  • Loading branch information
Akemi committed Feb 19, 2017
1 parent 4f74b93 commit 4e9878f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions player/lua/osc.lua
Expand Up @@ -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")

0 comments on commit 4e9878f

Please sign in to comment.