summaryrefslogtreecommitdiffstats
path: root/video/out/wayland_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'video/out/wayland_common.c')
-rw-r--r--video/out/wayland_common.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index 3be85012df..01a44e8abe 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -1314,6 +1314,12 @@ int vo_wayland_reconfig(struct vo *vo)
}
}
+ if (wl->vo_opts->window_maximized)
+ xdg_toplevel_set_maximized(wl->xdg_toplevel);
+
+ if (wl->vo_opts->window_minimized)
+ xdg_toplevel_set_minimized(wl->xdg_toplevel);
+
wl_surface_set_buffer_scale(wl->surface, wl->scaling);
wl_surface_commit(wl->surface);
wl->pending_vo_events |= VO_EVENT_RESIZE;