Transparent background issue fix for Linux

This commit is contained in:
Srinivas
2020-04-14 16:52:46 +05:30
parent 19f6027f60
commit 4c0c169684

View File

@@ -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', () => {