Can I listen to onMaximize / onMinimize events?


#1

Can I listen to maximalization / minimalization of events? I need to set up callback function for that, I tried some methods, but only solution that worked atleast little bit was when I added it as onclick event to maximize button(frameless window), but it can be (un)maximized by clicking the dragable region too, and I want to have that event callback, is it possible?

If not, could it be implemented in the future?


#2

Hello,
Event maximize not work ?

mainWindow = new BrowserWindow({ …})
mainWindow.on(‘maximize’, function() {

})


#3

I haven’t noticed this :confused: My bad.