Handle maximized size correctly

master
Emmanuel Gil Peyrot ago%!(EXTRA string=8 years) committed by linkmauve
parent 31cea7fa24
commit f51c219b1c
  1. 6
      src/wl_window.c

@ -58,6 +58,12 @@ static void handleConfigure(void* data,
if (!window->monitor)
{
if (window->decorated)
{
width -= 2 * _GLFW_DECORATION_WIDTH;
height -= _GLFW_DECORATION_TOP + _GLFW_DECORATION_WIDTH;
}
if (window->numer != GLFW_DONT_CARE && window->denom != GLFW_DONT_CARE)
{
aspectRatio = (float)width / (float)height;

Loading…
Cancel
Save