mirror of https://github.com/mpv-player/mpv
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:
parent
cf573797ee
commit
6573e0a0af
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue