From 13bed544a96c5e0182f4bf535c5627d59c8fbefb Mon Sep 17 00:00:00 2001 From: Ronny Date: Sun, 30 Aug 2026 22:22:48 +0200 Subject: [PATCH] fix(desktop): clear stuck always-on-top after first show on windows --- packages/desktop/src/main/windows.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/desktop/src/main/windows.ts b/packages/desktop/src/main/windows.ts index 6e7b8f3ff9b5..d6e8c5ffcfa2 100644 --- a/packages/desktop/src/main/windows.ts +++ b/packages/desktop/src/main/windows.ts @@ -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