diff --git a/src/main/mainWindow.ts b/src/main/mainWindow.ts index 73137ac..c80a25a 100644 --- a/src/main/mainWindow.ts +++ b/src/main/mainWindow.ts @@ -453,12 +453,13 @@ export async function createWindows() { mainWin.webContents.on("did-finish-load", () => { splash.destroy(); - // Doing this works around the gpu process crash when showing a hidden window on wayland with nvidia - mainWin!.show(); - mainWin!.hide(); - mainWin!.show(); - if (!startMinimized || isDeckGameMode) mainWin!.show(); + if (!startMinimized || isDeckGameMode) { + // Doing this works around the gpu process crash when showing a hidden window on wayland with nvidia + mainWin!.show(); + mainWin!.hide(); + mainWin!.show(); + } if (isDeckGameMode) { // always use entire display