7 days free

How to make Mac apps quit when you close the last window

Click the red button and the app keeps running in the Dock. Make closing the last window quit it, like on Windows.

Short answer

macOS keeps most apps running after their last window closes, and has no setting to change that: closing a window and quitting an app are separate on a Mac, and only ⌘Q quits. MacFixes’ Quit when the last window closes makes the red button on an app’s last window quit the app, with exceptions for apps you want left running.

Part of MacFixes: 7 days free, then $2.99 a month or $17.99 once, with every app and fix included.

What macOS gives you

By design, most Mac apps stay open with no windows — the dot under the Dock icon stays lit — until you press ⌘Q. A few apps quit on their own when their window closes (System Settings, for example), but there’s no system setting to make others behave that way.

How MacFixes fixes it

  1. 1
    Turn on the fix
    Open MacFixes Settings → Windows and turn on “Quit when the last window closes” (or type its name into Search for a fix).
  2. 2
    Allow Accessibility
    macOS asks for Accessibility permission so MacFixes can see when an app’s last window closes.
  3. 3
    Close windows as usual
    When an app’s last window closes, MacFixes quits it. Apps that should keep running — music players and chat apps — start as exceptions, and you can add your own.
DownloadmacOS 14 Sonoma or later · 7 days free

Why a Mac app keeps running with no windows

On Windows, most apps live inside their windows: close the last one and the app is gone. A Mac draws the line in a different place. The app is one thing and its windows are another, and the menu bar at the top of the screen belongs to the app, not to any window. Close every window and the app is still there, menus and all, ready for ⌘N to open a new document.

So on a Mac, closing and quitting are two different commands. The red button and ⌘W close a window. ⌘Q, or the app’s menu → Quit, ends the app. Neither is a bug, and for apps you open and close all day — a browser, a text editor, Mail — it means the next window opens instantly. It only feels wrong if you learned computers the other way round, or if you close a window expecting the app to be done.

How to tell which apps are still open

The Dock. An app that is running has a small dot under its icon. If you don’t see dots at all, open System Settings → Desktop & Dock and turn on “Show indicators for open applications”.

The app switcher. Press ⌘Tab and every running app is in the row, whether or not it has a window. An app with no windows still appears there, and switching to it shows its menu bar and nothing else.

The menu bar. Right after you close an app’s last window, look at the name beside the Apple menu. If it still shows that app rather than Finder, the app is still running — it’s just running with no windows.

Which apps already quit when you close them

Some apps are built around a single window and quit when you close it — System Settings is the one everyone meets. Each app decides this for itself; macOS has no setting to choose it for an app that doesn’t, which is why the red button quits one app and leaves the next one running.

A few apps offer a choice of their own, usually in their Settings. If an app you use all the time has one, that’s the simplest fix for that app. For every other app, the behaviour is whatever its developer picked.

Is it bad to leave apps running?

Usually not. macOS is designed to keep apps open: an app with no windows and nothing to do uses little, and memory it isn’t using can be compressed or handed to something else. Leaving an app open is not the same as it slowing your Mac down.

There are still good reasons to want them gone. Some apps keep working in the background — syncing, indexing, checking for updates — whether or not you’re looking at them, and that costs memory and battery. A Dock full of dots and a ⌘Tab row of apps you finished with hours ago make it harder to find the ones you are using. And if your habit is to close a window when you’re done, it is simply less to think about if the app goes with it. Activity Monitor’s Memory and Energy tabs show which open apps are actually costing something.

What closing does to your windows next time

Quitting an app changes what you see when you open it again. In System Settings → Desktop & Dock, “Close windows when quitting an application” decides it: turned on, the app opens fresh; turned off, apps that support it reopen the windows and documents you had open when you quit.

Closing a window with unsaved changes still asks first. The app shows its own save question, and the window doesn’t close until you’ve answered it, so nothing is lost by the window being the last one.

How the fix decides when to quit

With Quit when the last window closes turned on, MacFixes watches for an app’s last window closing and then quits the app — the Windows behaviour, on the red button you were already clicking. It needs Accessibility permission to see other apps’ windows; the section below says what that allows.

Minimised windows still count. A window you minimised to the Dock, or one on another desktop, is still open, so the app keeps running. Minimising never quits anything.

Some apps are never quit. Finder and MacFixes itself are always left alone. Apps you’d want running with no window open start on an exception list: Music, Spotify, Mail, Messages, Slack, Discord, Zoom, Teams, Calendar, Podcasts, OBS and FaceTime. Music keeps playing, messages keep arriving. You can remove any of those and add your own.

Once it’s on, the fix has its own card in the menu bar panel.

Related ways to tidy up running apps

Quit when the last window closes acts the moment a window closes. If what bothers you is apps you opened once and forgot, have the apps you pick quit on their own after sitting unused for a while instead. The opposite problem — ⌘Q closing a whole app when you meant ⌘W — has its own fix: make ⌘Q hold-to-quit. And if you’d like the Dock to work the Windows way too, click an app’s Dock icon to minimize it.

Permissions, and turning it off

“Quit when the last window closes” needs macOS’s Accessibility permission. macOS asks you, and you allow it once.

  • Accessibility lets an app see and work the windows, menus and buttons of other apps, and click or type for you. You can see it, and take it back, in System Settings → Privacy & Security → Accessibility.

To stop using it, open MacFixes Settings → Windows and use the switch on the “Quit when the last window closes” row.

Questions

Why does a Mac app keep running after I close its window?

On a Mac, an app and its windows are separate. Closing a window (the red button or ⌘W) closes that window; the app keeps running until you quit it with ⌘Q.

How do I fully close an app on a Mac?

Press ⌘Q while you’re in it, or Control-click its Dock icon and choose Quit. With MacFixes, closing an app’s last window quits it too.

Will it quit Finder?

No. Finder is always left alone, and so is MacFixes itself.

What about minimised windows or windows on another desktop?

Those still count as open, so the app isn’t quit.

Can I keep some apps running?

Yes. Music, Spotify, Mail, Slack and similar apps start on the exception list, and you can add or remove any app.

Is it bad to leave apps open on a Mac?

Usually not — an idle app uses little. Apps that keep working in the background can cost memory and battery, and Activity Monitor shows which ones those are.

More fixes macOS doesn’t give you

One of 47 fixes and 10 apps in MacFixes. Every fix · Every app · Something else your Mac won’t do? Request it.

Make Mac apps quit when you close the last window with MacFixes

MacFixes has 47 fixes for things macOS gets wrong or leaves out. Add only the ones you want. Free for 7 days, then $2.99 a month or $17.99 once. macOS 14 Sonoma or later.

Download