fixed terminal not getting focus when switching windows (fixes #692)

This commit is contained in:
Eugene Pankov
2019-12-31 23:20:07 +01:00
parent b07a2113d2
commit 21cb452d62
3 changed files with 15 additions and 0 deletions

View File

@@ -202,6 +202,10 @@ export class Window {
}
})
this.window.on('focus', () => {
this.send('host:window-focused')
})
ipcMain.on('window-focus', event => {
if (!this.window || event.sender !== this.window.webContents) {
return