From e920e09ccfc89f33a6b142a016f1bde2ab0a3343 Mon Sep 17 00:00:00 2001 From: sawka Date: Tue, 17 Oct 2023 21:54:44 -0700 Subject: [PATCH] backport linux changes to main --- src/electron/emain.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/electron/emain.ts b/src/electron/emain.ts index cbc6d7fde..7348071a4 100644 --- a/src/electron/emain.ts +++ b/src/electron/emain.ts @@ -294,11 +294,11 @@ function createMainWindow(clientData) { win.webContents.on("will-navigate", shNavHandler); win.webContents.on("will-frame-navigate", shFrameNavHandler); win.on( - "resized", + "resize", debounce(400, (e) => mainResizeHandler(e, win)) ); win.on( - "moved", + "move", debounce(400, (e) => mainResizeHandler(e, win)) ); win.on("focus", () => { @@ -350,7 +350,7 @@ function mainResizeHandler(e, win) { function calcBounds(clientData) { let primaryDisplay = electron.screen.getPrimaryDisplay(); let pdBounds = primaryDisplay.bounds; - let size = { x: 50, y: 50, width: pdBounds.width - 150, height: pdBounds.height - 150 }; + let size = { x: 100, y: 100, width: pdBounds.width - 200, height: pdBounds.height - 200 }; if (clientData != null && clientData.winsize != null && clientData.winsize.width > 0) { let cwinSize = clientData.winsize; if (cwinSize.width > 0) {