aboutsummaryrefslogtreecommitdiffhomepage
path: root/player
diff options
context:
space:
mode:
authorGravatar Akemi <der.richter@gmx.de>2017-02-19 21:33:00 +0100
committerGravatar Akemi <der.richter@gmx.de>2017-02-27 23:55:30 +0100
commit55fb4cb3f6938e8494b8b9a5eec9d56e656cf46b (patch)
treead9462b0514e64342f9e3f0e3cc8a719af20b28d /player
parent2292501533f0f5241573a6117be2c719a6740806 (diff)
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
Diffstat (limited to 'player')
-rw-r--r--player/lua/osc.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/player/lua/osc.lua b/player/lua/osc.lua
index 160457458c..bd7ed0857a 100644
--- a/player/lua/osc.lua
+++ b/player/lua/osc.lua
@@ -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")