mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 13:46:37 +00:00
Ignore configure events of 0×0px
This commit is contained in:
parent
65c954144e
commit
c08a67e825
@ -318,6 +318,8 @@ static void xdgToplevelHandleConfigure(void* data,
|
||||
}
|
||||
}
|
||||
|
||||
if (width != 0 && height != 0)
|
||||
{
|
||||
if (!maximized && !fullscreen)
|
||||
{
|
||||
if (window->numer != GLFW_DONT_CARE && window->denom != GLFW_DONT_CARE)
|
||||
@ -334,6 +336,7 @@ static void xdgToplevelHandleConfigure(void* data,
|
||||
_glfwInputWindowSize(window, width, height);
|
||||
_glfwPlatformSetWindowSize(window, width, height);
|
||||
_glfwInputWindowDamage(window);
|
||||
}
|
||||
|
||||
if (!activated && window->autoIconify)
|
||||
_glfwPlatformIconifyWindow(window);
|
||||
|
Loading…
Reference in New Issue
Block a user