From 4c0c1696840d65a1a07a411b03804fadaefab956 Mon Sep 17 00:00:00 2001 From: Srinivas Date: Tue, 14 Apr 2020 16:52:46 +0530 Subject: [PATCH] Transparent background issue fix for Linux --- main.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.ts b/main.ts index 05b1608e5..533b406ef 100644 --- a/main.ts +++ b/main.ts @@ -58,7 +58,8 @@ try { // This method will be called when Electron has finished // initialization and is ready to create browser windows. // Some APIs can only be used after this event occurs. - app.on('ready', createWindow); + // Added 400 ms to fix the black background issue while using transparent window. More detais at https://github.com/electron/electron/issues/15947 + app.on('ready', () => setTimeout(createWindow, 400)); // Quit when all windows are closed. app.on('window-all-closed', () => {