Merge pull request #243 from KiranNiranjan/ELECTRON-209

Electron-209 (Always on top issue)
This commit is contained in:
Vikas Shashidhar
2017-11-21 13:08:09 +05:30
committed by GitHub
+7 -7
View File
@@ -589,14 +589,14 @@ function isAlwaysOnTop(boolean) {
if (browserWins.length > 0) {
browserWins.forEach(function (browser) {
browser.setAlwaysOnTop(boolean);
// An issue where changing the alwaysOnTop property
// focus the pop-out window
// Issue - Electron-209
if (browser.winName === 'main') {
activate(browser.winName);
}
});
// An issue where changing the alwaysOnTop property
// focus the pop-out window
// Issue - Electron-209
if (mainWindow && mainWindow.winName) {
activate(mainWindow.winName);
}
}
}