Skip to content

Fix borderless-windowed mode being always on top#5868

Open
auwsmit wants to merge 1 commit into
raysan5:masterfrom
auwsmit:patch-2
Open

Fix borderless-windowed mode being always on top#5868
auwsmit wants to merge 1 commit into
raysan5:masterfrom
auwsmit:patch-2

Conversation

@auwsmit
Copy link
Copy Markdown

@auwsmit auwsmit commented May 14, 2026

Don't pass a monitor to glfwSetWindowMonitor(). This avoids setting the flag internal to glfw which keeps the window always on top.

BorderlessWindowed still works fine, and is properly detected on my two monitors at different resolutions.

Addresses this issue: #5854, but only for borderless FS.

A workaround for regular aka "exclusive" Fullscreen is mentioned in that thread, just add this to raylib's loop:

if (!IsWindowFocused() && IsWindowFullscreen())
{
    MinimizeWindow();
}

Don't pass a monitor to glfwSetWindowMonitor(). This avoids setting the flag which keeps the window always on top.
@auwsmit auwsmit changed the title Fix borderless fullscreen being always on top Fix borderless-windowed mode being always on top May 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant