From 717544779a8b6e0df9e349fae44bf13813c40a2d Mon Sep 17 00:00:00 2001 From: Devin Binnie <52460000+devinbinnie@users.noreply.github.com> Date: Wed, 3 May 2023 11:40:43 -0400 Subject: [PATCH] Fixed the window resize for Windows as well (#2705) --- src/main/windows/mainWindow.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/main/windows/mainWindow.ts b/src/main/windows/mainWindow.ts index 18dd004b..9a792f68 100644 --- a/src/main/windows/mainWindow.ts +++ b/src/main/windows/mainWindow.ts @@ -408,13 +408,8 @@ export class MainWindow extends EventEmitter { } private emitBoundsForMaximize = () => { - // Workaround for Linux since the window bounds aren't updated immediately when the window is maximized for some reason - if (process.platform !== 'linux') { - return; - } - setTimeout(() => { - this.emit(MAIN_WINDOW_RESIZED, this.getBounds()); - }, 10); + // Workaround since the window bounds aren't updated immediately when the window is maximized for some reason + setTimeout(() => this.emit(MAIN_WINDOW_RESIZED, this.getBounds()), 10); } private onMaximize = () => {