From 65a317436df05000366af2738bdbb834e95e33db Mon Sep 17 00:00:00 2001 From: dudemanguy Date: Mon, 2 Dec 2019 09:11:06 -0600 Subject: 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. --- player/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'player/command.c') 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) { -- cgit v1.2.3