diff options
author | wm4 <wm4@nowhere> | 2019-12-17 23:18:17 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-12-17 23:18:17 +0100 |
commit | 2a4d7c4aa866c300bd538bd8eb14bb714bda9bce (patch) | |
tree | ecc160366f06512549512467186837783447ca81 /player/command.c | |
parent | 13dff3073d85a4288ee317680fc44b9dc4ca096d (diff) | |
download | mpv-2a4d7c4aa866c300bd538bd8eb14bb714bda9bce.tar.bz2 mpv-2a4d7c4aa866c300bd538bd8eb14bb714bda9bce.tar.xz |
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.
Diffstat (limited to 'player/command.c')
-rw-r--r-- | player/command.c | 15 |
1 files changed, 2 insertions, 13 deletions
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); |