summaryrefslogtreecommitdiffstats
path: root/player/command.c
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2019-11-30 10:00:49 +0800
committerPhilip Langdale <github.philipl@overt.org>2019-12-01 09:39:51 +0800
commit61b8e1d436976b0d13805728c4b7f3ccd8061c90 (patch)
tree9671489932c7a4a9df5b0315fe30b6732fb3e150 /player/command.c
parent78f1629a539cc14a598831a73c59c3763c074094 (diff)
downloadmpv-61b8e1d436976b0d13805728c4b7f3ccd8061c90.tar.bz2
mpv-61b8e1d436976b0d13805728c4b7f3ccd8061c90.tar.xz
wayland: update Maximize and Minimize handling to use new options
I wanted to get this done quickly as I introduced the new VOCTRL behaviour for minimize and maximize and it was immediately made legacy, so best to purge it before anyone gets confused. I did not sort out fullscreen as that's more involved and not something I've educated myself about yet. But I did replace the VOCTRL_FULLSCREEN usage with the new option change mechanism as that seemed simple enough.
Diffstat (limited to 'player/command.c')
-rw-r--r--player/command.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/player/command.c b/player/command.c
index cf85858f47..505c092c27 100644
--- a/player/command.c
+++ b/player/command.c
@@ -6151,10 +6151,6 @@ void mp_option_change_callback(void *ctx, struct m_config_option *co, int flags,
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->window_minimized)
- vo_control(mpctx->video_out, VOCTRL_MINIMIZE, 0);
- if (opt_ptr == &opts->vo->window_maximized)
- vo_control(mpctx->video_out, VOCTRL_MAXIMIZE, 0);
}
if (opt_ptr == &opts->vo->taskbar_progress)