From 24c05b2a820cc8822e938825de57fa566bc4e5e1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 10 Oct 2014 18:51:44 +0200 Subject: player: don't mess up cursor visibility state Manually setting can break things forever, because it puts the VO cursor state out of sync with the remembered state by handle_cursor_autohide(). Use the normal autohide code during idle mode too instead. (Originally the idea was to make the cursor always visible in idle mode, but not so important.) Regression since e1e8b07c. Fixes #1166. CC: @mpv-player/stable Conflicts: player/playloop.c --- player/playloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/playloop.c b/player/playloop.c index 6f55507640..e702f1359d 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -820,7 +820,6 @@ void handle_force_window(struct MPContext *mpctx, bool reconfig) .d_w = w, .d_h = h, }; vo_reconfig(vo, &p, 0); - vo_control(vo, VOCTRL_SET_CURSOR_VISIBILITY, &(bool){true}); vo_control(vo, VOCTRL_RESTORE_SCREENSAVER, NULL); vo_set_paused(vo, true); vo_redraw(vo); @@ -989,6 +988,7 @@ void idle_loop(struct MPContext *mpctx) mp_wait_events(mpctx, mpctx->sleeptime); mpctx->sleeptime = 100.0; mp_process_input(mpctx); + handle_cursor_autohide(mpctx); update_osd_msg(mpctx); handle_osd_redraw(mpctx); } -- cgit v1.2.3