From a7c34f3af7c359e232f459e8076c5da8225e88e7 Mon Sep 17 00:00:00 2001 From: Andreas Rossberg Date: Mon, 22 Jun 2026 10:51:28 +0200 Subject: [PATCH] Update rcore_desktop_glfw.c Update window position in MaximizeCallback, since maximization does not appear to invoke PosCallback (at least on MacOS). --- src/platforms/rcore_desktop_glfw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/platforms/rcore_desktop_glfw.c b/src/platforms/rcore_desktop_glfw.c index 55b92ac79241..0e8e06ad3427 100644 --- a/src/platforms/rcore_desktop_glfw.c +++ b/src/platforms/rcore_desktop_glfw.c @@ -2012,6 +2012,8 @@ static void WindowMaximizeCallback(GLFWwindow *window, int maximized) { if (maximized) FLAG_SET(CORE.Window.flags, FLAG_WINDOW_MAXIMIZED); // The window was maximized else FLAG_CLEAR(CORE.Window.flags, FLAG_WINDOW_MAXIMIZED); // The window was restored + // Update current window position + glfwGetWindowPos(platform.handle, &CORE.Window.position.x, &CORE.Window.position.y); } // GLFW3: Window focus callback, runs when window get/lose focus