fix crash on nvidia gpu when running under wayland

This commit is contained in:
AAGaming 2023-11-13 15:01:10 -05:00
parent 94819e6f16
commit 60955db8d1
No known key found for this signature in database
GPG key ID: 00CFCD925A3E0C50

View file

@ -452,6 +452,9 @@ export async function createWindows() {
mainWin.webContents.on("did-finish-load", () => { mainWin.webContents.on("did-finish-load", () => {
splash.destroy(); 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(); mainWin!.show();
if (Settings.store.maximized && !isDeckGameMode) { if (Settings.store.maximized && !isDeckGameMode) {