From 80f1c40ad7fba14c5470e9c182bfee6ef3a50053 Mon Sep 17 00:00:00 2001 From: fanchenio Date: Tue, 7 Nov 2023 10:28:01 +0800 Subject: [PATCH] Solve transparent window flickering --- electron/main/index.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/electron/main/index.ts b/electron/main/index.ts index d55b408..7ab9721 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -34,6 +34,9 @@ process.env.VITE_PUBLIC = process.env.VITE_DEV_SERVER_URL ? join(process.env.DIST_ELECTRON, "../public") : process.env.DIST; +// 解决透明窗口闪烁 +app.commandLine.appendSwitch("wm-window-animations-disabled"); + // Disable GPU Acceleration for Windows 7 if (release().startsWith("6.1")) app.disableHardwareAcceleration();