From afe7dc47c23f21568d172102fb674f969c751c62 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 2 May 2025 09:35:25 +0530 Subject: [PATCH] Update size in addition to position when updating layer properties --- glfw/x11_window.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/glfw/x11_window.c b/glfw/x11_window.c index 576eda080..e131a253c 100644 --- a/glfw/x11_window.c +++ b/glfw/x11_window.c @@ -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 }