Electron-209 - Fixed an issue with the alwaysOnTop feature

This commit is contained in:
Kiran Niranjan 2017-11-10 17:07:32 +05:30 committed by Kiran Niranjan
parent d4f473a818
commit 1e2bfad70e

View File

@ -589,6 +589,13 @@ 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);
}
});
}
}