mirror of
https://github.com/glfw/glfw.git
synced 2024-11-11 04:53:50 +00:00
Don’t set min/max size on GLFW_DONT_CARE
This commit is contained in:
parent
a162004a90
commit
0e759c9422
@ -393,10 +393,12 @@ static GLFWbool createXdgSurface(_GLFWwindow* window)
|
|||||||
if (window->wl.title)
|
if (window->wl.title)
|
||||||
xdg_toplevel_set_title(window->wl.xdg.toplevel, window->wl.title);
|
xdg_toplevel_set_title(window->wl.xdg.toplevel, window->wl.title);
|
||||||
|
|
||||||
xdg_toplevel_set_min_size(window->wl.xdg.toplevel,
|
if (window->minwidth != GLFW_DONT_CARE && window->minheight != GLFW_DONT_CARE)
|
||||||
window->minwidth, window->minheight);
|
xdg_toplevel_set_min_size(window->wl.xdg.toplevel,
|
||||||
xdg_toplevel_set_max_size(window->wl.xdg.toplevel,
|
window->minwidth, window->minheight);
|
||||||
window->maxwidth, window->maxheight);
|
if (window->maxwidth != GLFW_DONT_CARE && window->maxheight != GLFW_DONT_CARE)
|
||||||
|
xdg_toplevel_set_max_size(window->wl.xdg.toplevel,
|
||||||
|
window->maxwidth, window->maxheight);
|
||||||
|
|
||||||
if (window->monitor)
|
if (window->monitor)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user