mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 17:12:36 +00:00
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;
|
struct vo_wayland_state *wl = data;
|
||||||
float win_aspect = wl->window.aspect;
|
float win_aspect = wl->window.aspect;
|
||||||
|
if (!width || !height)
|
||||||
|
return;
|
||||||
if (!wl->window.is_fullscreen)
|
if (!wl->window.is_fullscreen)
|
||||||
width = win_aspect * height;
|
width = win_aspect * height;
|
||||||
schedule_resize(wl, edges, width, height);
|
schedule_resize(wl, edges, width, height);
|
||||||
|
Loading…
Reference in New Issue
Block a user