diff --git a/src/platforms/rcore_desktop_glfw.c b/src/platforms/rcore_desktop_glfw.c index db7452b2c..70a64e650 100644 --- a/src/platforms/rcore_desktop_glfw.c +++ b/src/platforms/rcore_desktop_glfw.c @@ -288,7 +288,7 @@ void ToggleBorderlessWindowed(void) // Set screen position and size glfwSetWindowMonitor(platform.handle, NULL, CORE.Window.position.x, CORE.Window.position.y, - CORE.Window.screen.width, CORE.Window.screen.height, mode->refreshRate); + CORE.Window.screen.width, CORE.Window.screen.height, GLFW_DONT_CARE); // Refocus window glfwFocusWindow(platform.handle); @@ -318,7 +318,7 @@ void ToggleBorderlessWindowed(void) // Return to previous screen size and position glfwSetWindowMonitor(platform.handle, NULL, CORE.Window.position.x, CORE.Window.position.y, - CORE.Window.screen.width, CORE.Window.screen.height, mode->refreshRate); + CORE.Window.screen.width, CORE.Window.screen.height, GLFW_DONT_CARE); // Refocus window glfwFocusWindow(platform.handle);