summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOskar Nyberg <oskar@mullvad.net>2020-06-11 15:22:58 +0200
committerOskar Nyberg <oskar@mullvad.net>2020-06-22 16:55:13 +0200
commite11ed43144618bd733054e8cda04ce1717dcc95b (patch)
tree263e4aa347a384671ea8982f7a3cb3b807716c76
parent6a8d202fcef9fdfd32f873d25550d78bff3ffeb6 (diff)
downloadmullvadvpn-e11ed43144618bd733054e8cda04ce1717dcc95b.tar.xz
mullvadvpn-e11ed43144618bd733054e8cda04ce1717dcc95b.zip
Disable window animations on Windows
-rw-r--r--CHANGELOG.md4
-rw-r--r--gui/src/main/index.ts6
2 files changed, 10 insertions, 0 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..6d0fd6fe2c 100644
--- a/gui/src/main/index.ts
+++ b/gui/src/main/index.ts
@@ -186,6 +186,12 @@ class ApplicationMain {
private autoConnectFallbackScheduler = new Scheduler();
public run() {
+ // 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');
+ }
+
// Since electron's GPU blacklists are broken, GPU acceleration won't work on older distros
if (process.platform === 'linux') {
app.commandLine.appendSwitch('--disable-gpu');