From 1071249baad5dae1880a6eac8074b3e4859ff73d Mon Sep 17 00:00:00 2001 From: 01zulfi <85733202+01zulfi@users.noreply.github.com> Date: Fri, 24 Jul 2026 13:05:59 +0500 Subject: [PATCH] desktop: fix app not appearing in alt-tab switcher (#9764) Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com> --- apps/desktop/src/main.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/desktop/src/main.ts b/apps/desktop/src/main.ts index fc0232579..3bf553903 100644 --- a/apps/desktop/src/main.ts +++ b/apps/desktop/src/main.ts @@ -165,6 +165,14 @@ async function createWindow() { ); mainWindow.webContents.session.setProxy({ proxyRules: config.proxyRules }); + mainWindow.on("show", () => + /** + * We may set `skipTaskbar` to true at startup. + * This also removes the window from the Alt-Tab switcher. + * To fix that, whenever the app is shown, we set `skipTaskbar` to false. + */ + mainWindow.setSkipTaskbar(false) + ); mainWindow.once("closed", () => { globalThis.window = null; });