From e35e0dc5f78f21d2574634e117cb7cc3550ae962 Mon Sep 17 00:00:00 2001 From: Vendicated Date: Sun, 30 Aug 2026 18:03:52 +0200 Subject: [PATCH] Remove flags that disable renderer backgrounding We added these in the past to work around issues where Vesktop would go blank while backgrounded. The issue is likely fixed now. The best way to test it out is to just remove them and see if anyone complains :P --- src/main/main.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/main/main.ts b/src/main/main.ts index 7230e4d..ad2c78a 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -59,16 +59,6 @@ function init() { app.commandLine.appendSwitch("disable-smooth-scrolling"); } - // disable renderer backgrounding to prevent the app from unloading when in the background - // https://github.com/electron/electron/issues/2822 - // https://github.com/GoogleChrome/chrome-launcher/blob/5a27dd574d47a75fec0fb50f7b774ebf8a9791ba/docs/chrome-flags-for-tools.md#task-throttling - app.commandLine.appendSwitch("disable-renderer-backgrounding"); - app.commandLine.appendSwitch("disable-background-timer-throttling"); - app.commandLine.appendSwitch("disable-backgrounding-occluded-windows"); - if (process.platform === "win32") { - disabledFeatures.add("CalculateNativeWinOcclusion"); - } - // work around chrome 66 disabling autoplay by default app.commandLine.appendSwitch("autoplay-policy", "no-user-gesture-required");