summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/src/main/window-controller.ts23
1 files changed, 19 insertions, 4 deletions
diff --git a/gui/src/main/window-controller.ts b/gui/src/main/window-controller.ts
index 4c4b744b79..09b8d7651f 100644
--- a/gui/src/main/window-controller.ts
+++ b/gui/src/main/window-controller.ts
@@ -208,11 +208,26 @@ export default class WindowController {
private showImmediately() {
const window = this.windowValue;
- this.updatePosition();
- this.notifyUpdateWindowShape();
+ // When running with unpinned window on Windows there's a bug that causes the app to become
+ // wider if opened from minimized if the updated position is set before the window is opened.
+ // Unfortunately the order can't always be changed since this would cause the Window to "jump"
+ // in other scenarios.
+ if (
+ process.platform === 'win32' &&
+ this.windowPositioning instanceof StandaloneWindowPositioning
+ ) {
+ window.show();
+ window.focus();
- window.show();
- window.focus();
+ this.updatePosition();
+ this.notifyUpdateWindowShape();
+ } else {
+ this.updatePosition();
+ this.notifyUpdateWindowShape();
+
+ window.show();
+ window.focus();
+ }
}
private updatePosition() {