summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authordudemanguy <random342@airmail.cc>2019-12-02 09:11:06 -0600
committerDudemanguy <random342@airmail.cc>2019-12-04 00:47:05 +0000
commit65a317436df05000366af2738bdbb834e95e33db (patch)
treec57e664163e17d8acc7797015faaf2a41eb0d7e0 /player/command.c
parentfd28be400cbee01ea37aec07ea23480aae90e06b (diff)
downloadmpv-65a317436df05000366af2738bdbb834e95e33db.tar.bz2
mpv-65a317436df05000366af2738bdbb834e95e33db.tar.xz
options: move cursor autohiding opts to mp_vo_opts
Certain backends (i.e. wayland) will need to do special things with the mouse. It makes sense to expose the values of these options to them, so they can behave correctly.
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/player/command.c b/player/command.c
index 505c092c27..d9ff3c261f 100644
--- a/player/command.c
+++ b/player/command.c
@@ -6101,7 +6101,7 @@ void mp_option_change_callback(void *ctx, struct m_config_option *co, int flags,
if (opt_ptr == &opts->vo->window_scale)
update_window_scale(mpctx);
- if (opt_ptr == &opts->cursor_autohide_delay)
+ if (opt_ptr == &opts->vo->cursor_autohide_delay)
mpctx->mouse_timer = 0;
if (flags & UPDATE_DVB_PROG) {