diff options
-rw-r--r-- | video/out/wayland_common.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c index 990a3c500f..dee87e617e 100644 --- a/video/out/wayland_common.c +++ b/video/out/wayland_common.c @@ -979,9 +979,8 @@ static void handle_toplevel_config(void *data, struct xdg_toplevel *toplevel, vo_query_and_reset_events(wl->vo, VO_EVENT_LIVE_RESIZING); if (width > 0 && height > 0) { - if (!wl->fullscreen) { - if (wl->vo->opts->keepaspect && wl->vo->opts->keepaspect_window && - !wl->maximized) { + if (!wl->fullscreen && !wl->maximized) { + if (wl->vo->opts->keepaspect && wl->vo->opts->keepaspect_window) { if (width > height) width = height * wl->aspect_ratio; else |