Revert "SDA-4422 Bug - Workaroud for frameless transparent windows titlebar being displayed (#2041)" (#2048)

This reverts commit 8422af2faa.
This commit is contained in:
Salah Benmoussati 2024-01-03 04:28:55 +01:00 committed by GitHub
parent 1134ebbefe
commit b28e896d54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;