From 8c795d796327e478f177ea3e861a18dc3ab2b0fa Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 21 May 2015 23:11:51 +0200 Subject: command: explicitly show mouse cursor when unfullscreening --- player/command.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'player/command.c') diff --git a/player/command.c b/player/command.c index 5862881d8e..ee025f354a 100644 --- a/player/command.c +++ b/player/command.c @@ -2211,8 +2211,12 @@ static int mp_property_fullscreen(void *ctx, struct m_property *prop, int action, void *arg) { MPContext *mpctx = ctx; - return mp_property_vo_flag(prop, action, arg, VOCTRL_FULLSCREEN, - &mpctx->opts->vo.fullscreen, mpctx); + int oldval = mpctx->opts->vo.fullscreen; + int r = mp_property_vo_flag(prop, action, arg, VOCTRL_FULLSCREEN, + &mpctx->opts->vo.fullscreen, mpctx); + if (oldval && oldval != mpctx->opts->vo.fullscreen) + mpctx->mouse_event_ts--; // Show mouse cursor + return r; } /// Window always on top (RW) -- cgit v1.2.3