mirror of https://github.com/mpv-player/mpv
osc: always force mouse_move binding
So the OSC will still appear when using --no-input-default-bindings. It also means it may override a user's mouse_move binding, but I guess users who don't want the OSC should just use the --no-osc option.
This commit is contained in:
parent
29bc781b68
commit
b6ca4a48e1
|
@ -1880,7 +1880,7 @@ mp.observe_property("cache-idle", "bool", cache_state)
|
||||||
mp.set_key_bindings({
|
mp.set_key_bindings({
|
||||||
{"mouse_move", function(e) process_event("mouse_move", nil) end},
|
{"mouse_move", function(e) process_event("mouse_move", nil) end},
|
||||||
{"mouse_leave", mouse_leave},
|
{"mouse_leave", mouse_leave},
|
||||||
}, "showhide")
|
}, "showhide", "force")
|
||||||
mp.enable_key_bindings("showhide", "allow-vo-dragging|allow-hide-cursor")
|
mp.enable_key_bindings("showhide", "allow-vo-dragging|allow-hide-cursor")
|
||||||
|
|
||||||
--mouse input bindings
|
--mouse input bindings
|
||||||
|
|
Loading…
Reference in New Issue