mirror of
https://github.com/mpv-player/mpv
synced 2024-08-20 08:55:06 +02:00
wayland: reject resize events with either dimension being 0
Newer versions of mutter/gnome now ask mpv to resize to 0 by 0 pixels.
This commit is contained in:
parent
3e0d4de988
commit
cb2cb540f4
@ -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
Block a user