If you came from Windows, you've probably noticed this: you click the red close button, the window disappears, but the app is still running. There's a small dot under its icon in the Dock, and it keeps using memory until you press Cmd + Q.
On Windows, closing the last window quits the program. On macOS it doesn't. I wanted that Windows behavior on my Mac, so I built TrueClose.
Does closing a window quit the app on Mac?
No. By default, the red close button only closes the window. The app stays open in the background, keeps its place in the Dock, and keeps using RAM. Apple designed it this way so apps can reopen instantly, but if you never use that, it's just clutter.
What is TrueClose?
TrueClose is a small, free, open-source menu bar app for macOS. When you close an app's last window, it quits the app after a short delay.
Features:
- Adjustable delay (0.2–5 seconds): so closing one window right before opening another doesn't quit the app by mistake
- Blacklist or Whitelist mode: keep music players and menu bar tools running, or only auto-quit the apps you choose
- Protected system apps: Finder, System Settings, Activity Monitor and similar apps are on the default blacklist, with a warning if you change that
- Pause/Resume from the menu bar, launch at login, and an option to hide the menu bar icon (reopen Settings with ⌥⇧A)
- Free, MIT licensed, no telemetry
How does it work?
TrueClose uses the macOS Accessibility API to count how many windows each running app has. When an app drops to zero windows, TrueClose starts a timer. If the app still has no windows when the delay ends, TrueClose asks it to quit with NSRunningApplication.terminate().
That call is a normal quit request, the same as pressing Cmd + Q. Apps can still ask about unsaved changes instead of being force-killed. If an app doesn't quit, TrueClose tries again on the next check.
Install
With Homebrew:
brew install --cask nhatnam7kz/tap/trueclose
Or download the .pkg / .dmg from the Releases page. TrueClose isn't signed with a paid Apple certificate, so macOS may block it on first launch. Run this once to clear it:
xattr -d com.apple.quarantine /Applications/TrueClose.app
Then open the app and grant Accessibility access in System Settings.
Looking for a Swift Quit or RedQuits alternative?
Older tools like Swift Quit and RedQuits do a similar job, but they haven't had recent updates, and RedQuits 2.0 is Intel-only. If you want something newer with a configurable delay, separate blacklist/whitelist modes and a pause switch, TrueClose is built for that.
Links
- Website: https://trueclose.hoangnhatnamiq.workers.dev/
- GitHub: https://github.com/nhatnam7kz/TrueClose
I'd love feedback: which apps refuse to quit, or quit when they shouldn't? Would you like per-app delays or a notification before quitting? Leave a comment or open an issue on GitHub.


Top comments (3)
Hi
gud
Thank you! Hope it helps! 🚀