No Emacs frame refocus on macOS

from blog lmno.lol @alvaro, | ↗ original
This one's been bugging me for a while. On macOS, Emacs automatically focuses (raises) other frames when one is closed. This has the unfortunate side-effect that I could be moved from one macOS desktop/space to another when closing an Emacs frame. Finally managed do something about it. Since I install Emacs on macOS via homebrew, a small patch on...