summaryrefslogtreecommitdiffstats
path: root/player/discnav.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-05 15:55:19 +0100
committerwm4 <wm4@nowhere>2014-12-05 16:04:04 +0100
commitf95a4bceaa58a51b0a3ff5e16f50bf48b1c814d0 (patch)
tree03f3c439c3f851957cabfb5ea70e04bd086abf49 /player/discnav.c
parent254c60e608738be4c6a9ed6db6acfae41b830980 (diff)
downloadmpv-f95a4bceaa58a51b0a3ff5e16f50bf48b1c814d0.tar.bz2
mpv-f95a4bceaa58a51b0a3ff5e16f50bf48b1c814d0.tar.xz
osc, dvd, bd: fix mouse state when changing menu modes
The flags weren't correctly set, and the mouse cursor remained visible after leaving menu mode. This was apparently broken in 0.7.0 too. Fixes #1316.
Diffstat (limited to 'player/discnav.c')
-rw-r--r--player/discnav.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/player/discnav.c b/player/discnav.c
index e15ecce7f5..d66b569d4b 100644
--- a/player/discnav.c
+++ b/player/discnav.c
@@ -125,7 +125,8 @@ void mp_nav_init(struct MPContext *mpctx)
MP_VERBOSE(mpctx->nav_state, "enabling\n");
- mp_input_enable_section(mpctx->input, "discnav", 0);
+ mp_input_enable_section(mpctx->input, "discnav",
+ MP_INPUT_ALLOW_VO_DRAGGING | MP_INPUT_ALLOW_HIDE_CURSOR);
update_state(mpctx);
}