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.
This commit is contained in:
Dudemanguy 2020-08-14 15:15:54 -05:00
parent cf573797ee
commit 6573e0a0af
1 changed files with 1 additions and 1 deletions

View File

@ -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;