mirror of https://github.com/mpv-player/mpv
Merge pull request #3467 from atomnuker/master
wayland: reject resize events with either dimension being 0
This commit is contained in:
commit
ae3bbc4f63
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue