Ignore configure events of 0×0px

master
Emmanuel Gil Peyrot ago%!(EXTRA string=8 years) committed by linkmauve
parent 0e759c9422
commit f710db6504
  1. 3
      src/wl_window.c

@ -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…
Cancel
Save