summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRostislav Pehlivanov <atomnuker@gmail.com>2016-08-29 13:40:55 +0100
committerGitHub <noreply@github.com>2016-08-29 13:40:55 +0100
commitae3bbc4f63e54438ed157eb8ccb8eccd1f2d39e2 (patch)
treec4fcb263490cbfb742aee9fa7bfa5e8f23c123ab
parent3e0d4de98850cc2327b03db926ce0c2d28e2f103 (diff)
parentcb2cb540f49654d5b3377743bfea387411ce43f8 (diff)
downloadmpv-ae3bbc4f63e54438ed157eb8ccb8eccd1f2d39e2.tar.bz2
mpv-ae3bbc4f63e54438ed157eb8ccb8eccd1f2d39e2.tar.xz
Merge pull request #3467 from atomnuker/master
wayland: reject resize events with either dimension being 0
-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);