From 60955db8d1c42403cc9979781a86cc4c311b7a83 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Mon, 13 Nov 2023 15:01:10 -0500 Subject: [PATCH] fix crash on nvidia gpu when running under wayland --- src/main/mainWindow.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/mainWindow.ts b/src/main/mainWindow.ts index 8fdb6ee..1395d16 100644 --- a/src/main/mainWindow.ts +++ b/src/main/mainWindow.ts @@ -452,6 +452,9 @@ 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 (Settings.store.maximized && !isDeckGameMode) {