From a230ff09de4a434a5f4dd1bb67ff12408468d13c Mon Sep 17 00:00:00 2001 From: Scott Idem Date: Wed, 20 May 2026 17:54:05 -0400 Subject: [PATCH] fix: use workArea instead of bounds for initial window size Respects taskbar on Linux (KDE etc.) and menu bar on macOS. bounds caused the window to extend behind the taskbar on KDE. workArea gives {x, y, width, height} of the usable screen region. --- src/main/index.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/index.ts b/src/main/index.ts index 8cea37e..0a9374f 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -18,13 +18,13 @@ async function createWindow() { cachedFullConfig = await fetchFullConfig(cachedSeed); } - const { bounds } = screen.getPrimaryDisplay(); + const { workArea } = screen.getPrimaryDisplay(); mainWindow = new BrowserWindow({ - width: bounds.width, - height: bounds.height, - x: bounds.x, - y: bounds.y, + width: workArea.width, + height: workArea.height, + x: workArea.x, + y: workArea.y, title: 'OSIT Aether Launcher (Native)', webPreferences: { preload: path.join(__dirname, '../preload/index.js'),