diff options
| author | Tobias Järvelöv <tobias.jarvelov@mullvad.net> | 2025-02-21 13:37:19 +0100 |
|---|---|---|
| committer | Markus Pettersson <markus.pettersson@mullvad.net> | 2025-02-28 10:54:11 +0100 |
| commit | 242ecaf3d24278a2eeefe93c4dcaff9189ac5947 (patch) | |
| tree | d264bdbc3bd2ab2974205dbbd045ff1f009eabbe | |
| parent | 4c3c052e7603210e52a72070bd661d5925cc4e6d (diff) | |
| download | mullvadvpn-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.ts | 4 |
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; } |
