This commit is contained in:
Eugene Pankov 2018-09-20 11:46:24 +02:00
parent 6aab782326
commit 62222e67fb

View File

@ -138,13 +138,15 @@ export class Window {
}) })
this.window.on('resize', () => { this.window.on('resize', () => {
if (!this.window.isMaximized()) if (!this.window.isMaximized()) {
this.windowBounds = this.window.getBounds() this.windowBounds = this.window.getBounds()
}
}) })
this.window.on('move', () => { this.window.on('move', () => {
if (!this.window.isMaximized()) if (!this.window.isMaximized()) {
this.windowBounds = this.window.getBounds() this.windowBounds = this.window.getBounds()
}
}) })
ipcMain.on('window-focus', () => { ipcMain.on('window-focus', () => {