From 2a4d7c4aa866c300bd538bd8eb14bb714bda9bce Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 17 Dec 2019 23:18:17 +0100 Subject: command, vo: remove old option change notification mechanisms These all have been replaced recently. There was a leftover in window.swift. It couldn't have done anything useful in the current state of the code, so drop these lines. --- player/command.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) (limited to 'player/command.c') diff --git a/player/command.c b/player/command.c index 81b1bb810c..21d62f965c 100644 --- a/player/command.c +++ b/player/command.c @@ -6117,19 +6117,8 @@ void mp_option_change_callback(void *ctx, struct m_config_option *co, int flags, } } - if (mpctx->video_out) { - if (opt_ptr == &opts->vo->fullscreen) { - vo_control(mpctx->video_out, VOCTRL_FULLSCREEN, 0); - if (!opts->vo->fullscreen) - mpctx->mouse_event_ts--; // Show mouse cursor - } - if (opt_ptr == &opts->vo->ontop) - vo_control(mpctx->video_out, VOCTRL_ONTOP, 0); - if (opt_ptr == &opts->vo->border) - vo_control(mpctx->video_out, VOCTRL_BORDER, 0); - if (opt_ptr == &opts->vo->all_workspaces) - vo_control(mpctx->video_out, VOCTRL_ALL_WORKSPACES, 0); - } + if (opt_ptr == &opts->vo->fullscreen && !opts->vo->fullscreen) + mpctx->mouse_event_ts--; // Show mouse cursor if (opt_ptr == &opts->vo->taskbar_progress) update_vo_playback_state(mpctx); -- cgit v1.2.3