X11: Fix application of window size limits

Closes #805.
This commit is contained in:
Keringar
2016-07-13 14:31:51 -07:00
committed by Camilla Berglund
parent c844fea9df
commit d4eb88b255
2 changed files with 19 additions and 0 deletions
+16
View File
@@ -229,6 +229,22 @@ static void updateNormalHints(_GLFWwindow* window, int width, int height)
hints->max_height = window->maxheight;
}
if (window->minwidth != GLFW_DONT_CARE &&
window->minheight != GLFW_DONT_CARE)
{
hints->flags |= (PMinSize);
hints->min_width = window->minwidth;
hints->min_height = window->minheight;
}
if (window->maxwidth != GLFW_DONT_CARE &&
window->maxheight != GLFW_DONT_CARE)
{
hints->flags |= (PMaxSize);
hints->max_width = window->maxwidth;
hints->max_height = window->maxheight;
}
if (window->numer != GLFW_DONT_CARE &&
window->denom != GLFW_DONT_CARE)
{