diff --git a/src/index.ts b/src/index.ts index 659c27e4..15019c91 100644 --- a/src/index.ts +++ b/src/index.ts @@ -331,10 +331,10 @@ async function createMainWindow() { const scaledY = windowY; if ( - scaledX + scaledWidth < display.bounds.x - 8 || - scaledX - scaledWidth > display.bounds.x + display.bounds.width || - scaledY < display.bounds.y - 8 || - scaledY > display.bounds.y + display.bounds.height + scaledX + (scaledWidth / 2) < display.bounds.x - 8 || // Left + scaledX + (scaledWidth / 2) > display.bounds.x + display.bounds.width || // Right + scaledY < display.bounds.y - 8 || // Top + scaledY + (scaledHeight / 2) > display.bounds.y + display.bounds.height // Bottom ) { // Window is offscreen if (is.dev()) {