1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-23 02:38:52 -05:00

Ignore configure events of 0×0px

This commit is contained in:
Emmanuel Gil Peyrot 2018-01-04 21:55:09 +01:00 committed by linkmauve
parent 0e759c9422
commit f710db6504

View File

@ -318,6 +318,8 @@ static void xdgToplevelHandleConfigure(void* data,
} }
} }
if (width != 0 && height != 0)
{
if (!maximized && !fullscreen) if (!maximized && !fullscreen)
{ {
if (window->numer != GLFW_DONT_CARE && window->denom != GLFW_DONT_CARE) if (window->numer != GLFW_DONT_CARE && window->denom != GLFW_DONT_CARE)
@ -334,6 +336,7 @@ static void xdgToplevelHandleConfigure(void* data,
_glfwInputWindowSize(window, width, height); _glfwInputWindowSize(window, width, height);
_glfwPlatformSetWindowSize(window, width, height); _glfwPlatformSetWindowSize(window, width, height);
_glfwInputWindowDamage(window); _glfwInputWindowDamage(window);
}
if (!activated && window->autoIconify) if (!activated && window->autoIconify)
_glfwPlatformIconifyWindow(window); _glfwPlatformIconifyWindow(window);