summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-10-10 18:51:44 +0200
committerwm4 <wm4@nowhere>2014-10-10 18:51:44 +0200
commit3fc9f9d1324468d09c915a0ac5b74e0dcdb5b8d7 (patch)
treeedc42ee1ab668bd381bc30222aaaa35e761255b5
parentf432a584b9814e0caeb977d5e6e69136da6fa430 (diff)
downloadmpv-3fc9f9d1324468d09c915a0ac5b74e0dcdb5b8d7.tar.bz2
mpv-3fc9f9d1324468d09c915a0ac5b74e0dcdb5b8d7.tar.xz
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
-rw-r--r--player/playloop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/playloop.c b/player/playloop.c
index 3f53a47377..e8409e90b6 100644
--- a/player/playloop.c
+++ b/player/playloop.c
@@ -838,7 +838,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);
@@ -991,6 +990,7 @@ void mp_idle(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);
}