dvd, bd, osc: disable OSC while a menu is active

They interfere.

It turns out that commit b6ca4a48 actually broke this in weird ways, but
this solution is better anyway.
This commit is contained in:
wm4 2014-12-04 18:32:14 +01:00
parent 231d5a32a9
commit 7aa91af8a7
1 changed files with 9 additions and 0 deletions

View File

@ -1876,6 +1876,15 @@ mp.observe_property("fullscreen", "bool", function(name, val) state.fullscreen =
mp.observe_property("pause", "bool", pause_state)
mp.observe_property("cache-idle", "bool", cache_state)
mp.observe_property("disc-menu-active", "bool", function(name, val)
if val == true then
hide_osc()
mp.disable_key_bindings("showhide")
else
mp.enable_key_bindings("showhide")
end
end)
-- mouse show/hide bindings
mp.set_key_bindings({
{"mouse_move", function(e) process_event("mouse_move", nil) end},