The green button "maximum" doesn't trigger a event


#1

I can receive full screen event when I use menu “view->Toggle Full Screen”

the codes is like this:

Blockquote
@subscriptions.add atom.commands.add ‘atom-workspace’,
‘window:toggle-full-screen’: => @updateFullScreen()

However, I cannot receive any event when I click green button in the left top corner of the frame.
Is there a way to get an event for the click?

Thanks