Skip to content

Commit

Permalink
Transparent background issue fix for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
bsrinivasguptha committed Apr 14, 2020
1 parent 19f6027 commit 4c0c169
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down

0 comments on commit 4c0c169

Please sign in to comment.