summaryrefslogtreecommitdiffstats
path: root/video/out
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2020-08-14 15:15:54 -0500
committerDudemanguy <random342@airmail.cc>2020-08-14 15:20:40 -0500
commit6573e0a0af1a7ece043b9d94f6a844cfff6b74d3 (patch)
treec482266f5692f1d0d884bec2913ebf1b7275e493 /video/out
parentcf573797ee6e429e22bdd0dbc1172fe3ff464f78 (diff)
downloadmpv-6573e0a0af1a7ece043b9d94f6a844cfff6b74d3.tar.bz2
mpv-6573e0a0af1a7ece043b9d94f6a844cfff6b74d3.tar.xz
wayland: actually resize videos in a playlist
In a playlist of videos with different sizes, going to the next video would not properly resize the window. This actually broke way back in 7170910 (oops), but somehow nobody ever complained. The fix is simple. If a window isn't maximized, be sure to set the window geometry again.
Diffstat (limited to 'video/out')
-rw-r--r--video/out/wayland_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index 8e7d8bb7b0..5c8e0ba550 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -1347,7 +1347,7 @@ int vo_wayland_reconfig(struct vo *vo)
vo_calc_window_geometry(vo, &screenrc, &geo);
vo_apply_window_geometry(vo, &geo);
- if (!wl->configured) {
+ if (!wl->configured || !wl->vo_opts->window_maximized) {
wl->geometry.x0 = 0;
wl->geometry.y0 = 0;
wl->geometry.x1 = vo->dwidth / wl->scaling;