summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
Diffstat (limited to 'video')
-rw-r--r--video/out/wayland_common.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index 3ea4a3f4a6..e42af8438e 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -142,6 +142,8 @@ static void ssurface_handle_configure(void *data,
{
struct vo_wayland_state *wl = data;
float win_aspect = wl->window.aspect;
+ if (!width || !height)
+ return;
if (!wl->window.is_fullscreen)
width = win_aspect * height;
schedule_resize(wl, edges, width, height);