diff options
author | wm4 <wm4@nowhere> | 2015-05-21 23:11:51 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-05-21 23:11:51 +0200 |
commit | 8c795d796327e478f177ea3e861a18dc3ab2b0fa (patch) | |
tree | 964cfd5a4c62f916677e31c09a6fc5d243e077c1 /player | |
parent | ac879545ada48eb47cf5e56625fc00a403283890 (diff) | |
download | mpv-8c795d796327e478f177ea3e861a18dc3ab2b0fa.tar.bz2 mpv-8c795d796327e478f177ea3e861a18dc3ab2b0fa.tar.xz |
command: explicitly show mouse cursor when unfullscreening
Diffstat (limited to 'player')
-rw-r--r-- | player/command.c | 8 |
1 files changed, 6 insertions, 2 deletions
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) |