Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/desktop/src/main/windows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,11 @@ export function createMainWindow(id: string = randomUUID()) {

win.once("ready-to-show", () => {
win.show()
// Frameless Win32 windows can end up stuck in the topmost Z-order level
// after the first show, making the app behave as always-on-top even though
// it was never set. Reset the always-on-top flag so the OS treats it as a
// normal window and lets other windows cover it again.
if (process.platform === "win32") win.setAlwaysOnTop(false)
})

return win
Expand Down
Loading