mirror of
https://github.com/glfw/glfw.git
synced 2025-10-04 13:46:37 +00:00
Fixing resize issue on X11
This commit is contained in:
parent
9c5b994369
commit
56cf8ef50c
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user