1
mirror of https://github.com/mpv-player/mpv synced 2024-08-20 08:55:06 +02:00

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

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