Merge pull request #233 from KiranNiranjan/ELECTRON-209

Electron-209 (Always on top issue)
This commit is contained in:
Vikas Shashidhar 2017-11-20 12:21:20 +05:30 committed by GitHub
commit 05f373e195
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}
});
}
}