summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2020-06-23 08:45:16 +0200
committerOskar Nyberg <oskar@mullvad.net>2020-06-23 08:45:16 +0200
commit53e1e3bfc573abc7fb9845c2fce8271a22814c9e (patch)
tree170158953275f7876902cbb98714b94a35d6deef /gui
parent6a8d202fcef9fdfd32f873d25550d78bff3ffeb6 (diff)
parent6d0adb37cb2f26613d8b1f0e6a55cb6139168885 (diff)
downloadmullvadvpn-53e1e3bfc573abc7fb9845c2fce8271a22814c9e.tar.xz
mullvadvpn-53e1e3bfc573abc7fb9845c2fce8271a22814c9e.zip
Merge branch 'disable-window-animations-on-windows'
Diffstat (limited to 'gui')
-rw-r--r--gui/src/main/index.ts7
1 files changed, 4 insertions, 3 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts
index f6417bd89a..b09d83e292 100644
--- a/gui/src/main/index.ts
+++ b/gui/src/main/index.ts
@@ -186,9 +186,10 @@ class ApplicationMain {
private autoConnectFallbackScheduler = new Scheduler();
public run() {
- // Since electron's GPU blacklists are broken, GPU acceleration won't work on older distros
- if (process.platform === 'linux') {
- app.commandLine.appendSwitch('--disable-gpu');
+ // Remove window animations to combat window flickering when opening window. Can be removed when
+ // this issue has been resolved: https://github.com/electron/electron/issues/12130
+ if (process.platform === 'win32') {
+ app.commandLine.appendSwitch('wm-window-animations-disabled');
}
this.overrideAppPaths();