Update size in addition to position when updating layer properties

This commit is contained in:
Kovid Goyal 2025-05-02 09:35:25 +05:30
parent 11cb3adb8f
commit afe7dc47c2
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

5
glfw/x11_window.c vendored
View file

@ -701,7 +701,10 @@ update_wm_hints(_GLFWwindow *window, const WindowGeometry *wg, const _GLFWwndcon
if (count && _glfw.x11.NET_WM_STATE) XChangeProperty(_glfw.x11.display, window->x11.handle, _glfw.x11.NET_WM_STATE,
XA_ATOM, 32, PropModeReplace, (unsigned char*) states, count);
}
if (!wndconfig && ok) _glfwPlatformSetWindowPos(window, wg->x, wg->y);
if (!wndconfig && ok) {
_glfwPlatformSetWindowPos(window, wg->x, wg->y);
_glfwPlatformSetWindowSize(window, wg->width, wg->height);
}
return ok;
#undef config
}