https://oneminutemacman.com/make-green-zoom-window-button-work-way-used/
Make the Mac's green zoom buttons work the way you expect them to