Skip to content

Commit

Permalink
Revert "SDA-4422 Bug - Workaroud for frameless transparent windows ti…
Browse files Browse the repository at this point in the history
…tlebar being displayed (#2041)" (#2048)

This reverts commit 8422af2.
  • Loading branch information
sbenmoussati committed Jan 3, 2024
1 parent 1134ebb commit b28e896
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/app/window-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,16 +227,6 @@ export const createComponentWindow = (
browserWindow.show();
});
}

// SDA-4422 workaround
if (!options.frame && options.transparent) {
browserWindow.on('blur', () => {
browserWindow.setBackgroundColor('#00000000');
});
browserWindow.on('focus', () => {
browserWindow.setBackgroundColor('#00000000');
});
}
browserWindow.webContents.once('did-finish-load', () => {
if (!browserWindow || !windowExists(browserWindow)) {
return;
Expand Down

0 comments on commit b28e896

Please sign in to comment.