diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2020-06-23 08:45:16 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2020-06-23 08:45:16 +0200 |
| commit | 53e1e3bfc573abc7fb9845c2fce8271a22814c9e (patch) | |
| tree | 170158953275f7876902cbb98714b94a35d6deef | |
| parent | 6a8d202fcef9fdfd32f873d25550d78bff3ffeb6 (diff) | |
| parent | 6d0adb37cb2f26613d8b1f0e6a55cb6139168885 (diff) | |
| download | mullvadvpn-53e1e3bfc573abc7fb9845c2fce8271a22814c9e.tar.xz mullvadvpn-53e1e3bfc573abc7fb9845c2fce8271a22814c9e.zip | |
Merge branch 'disable-window-animations-on-windows'
| -rw-r--r-- | CHANGELOG.md | 4 | ||||
| -rw-r--r-- | gui/src/main/index.ts | 7 |
2 files changed, 8 insertions, 3 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index e6c4bf2ab0..e0d6880534 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,10 @@ Line wrap the file at 100 chars. Th #### Android - Show a system notification when the account time will soon run out. +### Fixed +#### Windows +- Fix window flickering by disabling window animations. + ## [2020.5-beta2] - 2020-06-16 ### Added 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(); |
