From cb2cb540f49654d5b3377743bfea387411ce43f8 Mon Sep 17 00:00:00 2001 From: Rostislav Pehlivanov Date: Mon, 29 Aug 2016 13:20:35 +0100 Subject: [PATCH] wayland: reject resize events with either dimension being 0 Newer versions of mutter/gnome now ask mpv to resize to 0 by 0 pixels. --- video/out/wayland_common.c | 2 ++ 1 file changed, 2 insertions(+) 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);