From a6a80cebe9ab67ee50cd97028f1e94ff0c11d00c Mon Sep 17 00:00:00 2001 From: Fedor Indutny <79877362+indutny-signal@users.noreply.github.com> Date: Thu, 15 Sep 2022 11:34:51 -0700 Subject: [PATCH] Ignore "minimize" event on Linux --- app/main.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/main.ts b/app/main.ts index 7f16d3cac..683fd5f9d 100644 --- a/app/main.ts +++ b/app/main.ts @@ -888,6 +888,11 @@ async function createWindow() { }); mainWindow.on('minimize', async () => { + // Some window managers minimize Signal when tabbing to other window. + if (OS.isLinux()) { + return; + } + if (!mainWindow) { getLogger().info('minimize event: no main window'); return; @@ -899,6 +904,7 @@ async function createWindow() { await systemTraySettingCache.get() ); if (usingTrayIcon) { + getLogger().info('minimize event: closing main window'); mainWindow.close(); } });