summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTobias Järvelöv <tobias.jarvelov@mullvad.net>2025-02-21 13:37:19 +0100
committerMarkus Pettersson <markus.pettersson@mullvad.net>2025-02-28 10:54:11 +0100
commit242ecaf3d24278a2eeefe93c4dcaff9189ac5947 (patch)
treed264bdbc3bd2ab2974205dbbd045ff1f009eabbe
parent4c3c052e7603210e52a72070bd661d5925cc4e6d (diff)
downloadmullvadvpn-242ecaf3d24278a2eeefe93c4dcaff9189ac5947.tar.xz
mullvadvpn-242ecaf3d24278a2eeefe93c4dcaff9189ac5947.zip
Open pinned window on bottom right if tray position is unknown
The default is currently to open the window in the center of the primary screen when the tray icon's position can't be established. This can happen when the taskbar is hidden.
-rw-r--r--desktop/packages/mullvad-vpn/src/main/window-controller.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/desktop/packages/mullvad-vpn/src/main/window-controller.ts b/desktop/packages/mullvad-vpn/src/main/window-controller.ts
index 553c798334..370858e6f6 100644
--- a/desktop/packages/mullvad-vpn/src/main/window-controller.ts
+++ b/desktop/packages/mullvad-vpn/src/main/window-controller.ts
@@ -83,8 +83,8 @@ class AttachedToTrayWindowPositioning implements IWindowPositioning {
break;
case 'none':
- x = workArea.x + (workArea.width - windowBounds.width) * 0.5;
- y = workArea.y + (workArea.height - windowBounds.height) * 0.5;
+ x = workArea.x + (workArea.width - windowBounds.width);
+ y = workArea.y + (workArea.height - windowBounds.height);
break;
}