From dda51b7d8247aa1b43981ccc4d84d0e847d4e012 Mon Sep 17 00:00:00 2001 From: tillua467 Date: Fri, 3 Jul 2026 21:57:56 +0600 Subject: [PATCH] [rcore][GLFW] Fix `ToggleBorderlessWindowed()` entering exclusive fullscreen instead of windowed ToggleBorderlessWindowed() passes monitors[monitor] as the monitor argument. but passing a non-NULL monitor here is what puts a window into full screen mode that's the exact same call ToggleFullscreen() makes, Since borderless windowed is supposed to stay in windowed mode, this should be NULL instead Signed-off-by: tillua467 --- src/platforms/rcore_desktop_glfw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/rcore_desktop_glfw.c b/src/platforms/rcore_desktop_glfw.c index 22bd6b4e2..db7452b2c 100644 --- a/src/platforms/rcore_desktop_glfw.c +++ b/src/platforms/rcore_desktop_glfw.c @@ -287,7 +287,7 @@ void ToggleBorderlessWindowed(void) CORE.Window.screen.height = mode->height; // Set screen position and size - glfwSetWindowMonitor(platform.handle, monitors[monitor], CORE.Window.position.x, CORE.Window.position.y, + glfwSetWindowMonitor(platform.handle, NULL, CORE.Window.position.x, CORE.Window.position.y, CORE.Window.screen.width, CORE.Window.screen.height, mode->refreshRate); // Refocus window