[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 <tillua467@gmail.com>
This commit is contained in:
tillua467 2026-07-03 21:57:56 +06:00
commit dda51b7d82

View file

@ -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