From 61b8e1d436976b0d13805728c4b7f3ccd8061c90 Mon Sep 17 00:00:00 2001 From: Philip Langdale Date: Sat, 30 Nov 2019 10:00:49 +0800 Subject: 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. --- player/command.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'player') 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) -- cgit v1.2.3