From 6573e0a0af1a7ece043b9d94f6a844cfff6b74d3 Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Fri, 14 Aug 2020 15:15:54 -0500 Subject: 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. --- video/out/wayland_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video/out') 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; -- cgit v1.2.3