From aedad13f48c36c132cc4ced2a9d7a1d7d5d680ff Mon Sep 17 00:00:00 2001 From: Richard Yu Date: Sun, 27 Mar 2022 04:19:22 +0800 Subject: [PATCH] fix crash on Windows 7 --- app/lib/window.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/window.ts b/app/lib/window.ts index 8e2e3307..2f2136a8 100644 --- a/app/lib/window.ts +++ b/app/lib/window.ts @@ -182,7 +182,7 @@ export class Window { console.error('Failed to set window blur', error) } } else { - DwmEnableBlurBehindWindow(this.window, enabled) + DwmEnableBlurBehindWindow(this.window.getNativeWindowHandle(), enabled) } } else if (process.platform === 'linux') { this.window.setBackgroundColor(enabled ? '#00000000' : '#131d27')