Electron-209 - Activating the main window after setting the alwaysOnTop property for every window

This commit is contained in:
Kiran Niranjan
2017-11-21 11:40:04 +05:30
committed by Kiran Niranjan
parent 57ca4f211c
commit a5dfd9f9b4
+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);
}
}
}