Merge pull request #3467 from atomnuker/master

wayland: reject resize events with either dimension being 0
This commit is contained in:
Rostislav Pehlivanov 2016-08-29 13:40:55 +01:00 committed by GitHub
commit ae3bbc4f63
1 changed files with 2 additions and 0 deletions

View File

@ -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);