Merge pull request #468 from bsrinivasguptha/master

Transparent background issue fix for Linux
This commit is contained in:
Maxime GRIS
2020-04-18 16:27:38 +02:00
committed by GitHub

View File

@@ -58,7 +58,8 @@ try {
// This method will be called when Electron has finished // This method will be called when Electron has finished
// initialization and is ready to create browser windows. // initialization and is ready to create browser windows.
// Some APIs can only be used after this event occurs. // 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. // Quit when all windows are closed.
app.on('window-all-closed', () => { app.on('window-all-closed', () => {