diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2020-10-26 15:06:59 +0100 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2020-10-27 11:31:53 +0100 |
| commit | a5a8afd0bed15fdcce765a5a59cd36d581e610e2 (patch) | |
| tree | 06d6ee5c70a312a85cba46c14f3748111e4398ca /gui | |
| parent | e382e1125cb45c6503b9be9b10625fa954e0599e (diff) | |
| download | mullvadvpn-a5a8afd0bed15fdcce765a5a59cd36d581e610e2.tar.xz mullvadvpn-a5a8afd0bed15fdcce765a5a59cd36d581e610e2.zip | |
Enable alwaysOnTop on Windows to ensure app is placed above other apps
Diffstat (limited to 'gui')
| -rw-r--r-- | gui/src/main/index.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gui/src/main/index.ts b/gui/src/main/index.ts index 8339fb8d7a..6aa456b15e 100644 --- a/gui/src/main/index.ts +++ b/gui/src/main/index.ts @@ -1370,6 +1370,10 @@ class ApplicationMain { // setup window flags to mimic an overlay window return new BrowserWindow({ ...options, + // Due to a bug in Electron the app is sometimes placed behind other apps when opened. + // Setting alwaysOnTop to true ensures that the app is placed on top. Electron issue: + // https://github.com/electron/electron/issues/25915 + alwaysOnTop: true, transparent: true, skipTaskbar: true, }); |
