summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRostislav Pehlivanov <atomnuker@gmail.com>2016-08-29 13:20:35 +0100
committerRostislav Pehlivanov <atomnuker@gmail.com>2016-08-29 13:21:54 +0100
commitcb2cb540f49654d5b3377743bfea387411ce43f8 (patch)
treec4fcb263490cbfb742aee9fa7bfa5e8f23c123ab
parent3e0d4de98850cc2327b03db926ce0c2d28e2f103 (diff)
downloadmpv-cb2cb540f49654d5b3377743bfea387411ce43f8.tar.bz2
mpv-cb2cb540f49654d5b3377743bfea387411ce43f8.tar.xz
wayland: reject resize events with either dimension being 0
Newer versions of mutter/gnome now ask mpv to resize to 0 by 0 pixels.
-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);