Mac window positions lost after a restart or login
26 November 2026 · Martín Acuña Lledó · Applies to macOS 13 Ventura through macOS 27
You restart for an update, log back in, and your apps reopen. But the browser that lived on the left monitor is on the laptop, everything is stacked on one screen, or the monitors themselves are in the wrong order. A Hacker News user summed it up in 2020: every single login involved rearranging their windows. This page explains what macOS restores after a restart and what it does not, why several monitors make it worse, the fixes without an app, and what my app does at login.
What macOS restores
Two settings decide whether your windows come back at all:
- "Reopen windows when logging back in". It is the checkbox in the Restart and Shut Down dialogs. Apple's guide "Shut down or restart your Mac" says to deselect it "if you don't want app windows that are open to reopen when your Mac restarts". Leave it selected and your apps and their windows come back.
- "Close windows when quitting an application". In System Settings → Desktop & Dock. Apple's description: "Close app windows when you quit an app. The windows don't reopen automatically the next time you open the app." Leave it off if you want an app's windows back when it reopens.
What neither setting promises is the monitor each window goes back to. The windows reopen on the displays that exist while you log in, and that is where multiple monitors go wrong.
Why monitors make it worse
- Monitors come up at different times. After a restart, external monitors are detected one by one, sometimes after you have already logged in. The Hacker News user's explanation: macOS moves them all to whatever display woke up first.
- Identical monitors can come up swapped. In the same thread, another user blamed manufacturers that share the same EDID across every unit of a model, so macOS cannot tell the monitors apart and may swap them. See two identical monitors swap places after sleep.
- Ports matter. A third user said their Mac remembers the arrangement as long as the monitors stay on the same ports.
Fixes without an app
- Keep "Reopen windows when logging back in" selected and "Close windows when quitting an application" off, so there is something to reopen.
- Let the monitors come up before you log in. Wait until every monitor shows the login screen, then type your password. Windows reopen onto the displays that are there.
- Assign apps to a display. Control-click an app's Dock icon, choose Options, and under Assign To pick Desktop on Display followed by the monitor's number. Apple's guide "Work in multiple spaces on Mac" says the app then opens in the current space on that display. More in Mac apps open on the wrong monitor.
- Check "Displays have separate Spaces". One Hacker News user found macOS remembered what went where better with it checked. It is in System Settings → Desktop & Dock → Mission Control.
- Keep each monitor on the same port every time, so macOS sees the same set of displays after each restart.
- Fix the arrangement with displayplacer if the monitors themselves come up in the wrong order. It sets the arrangement, not the windows. See fix swapped monitors with displayplacer.
What those fixes do not cover
- Apple's guides say the windows reopen, not that each one goes back to the monitor it was on, and with several screens that is the part that fails.
- Assigning an app to a display works per app and per desktop, not per window. Two browser windows on two monitors still reopen together.
- Apps that do not support reopening their windows start empty, whatever the setting.
How Many Displays handles it
Many Displays keeps the last good layout on disk, one per combination of displays. When it starts at login, with "Open at Login" turned on in its menu, it waits until the displays have been stable for a few seconds. Window IDs change after a restart, so it matches each saved window to the reopened one of the same app by its title, or when the app has a single window, and moves those back to their display, position and size.
Where it does not help:
- Windows it cannot match. If an app reopens with different titles, or several windows with the same title, those are left where macOS put them.
- Apps that do not reopen. It never opens apps or windows, so it can only move what macOS brought back.
- Desktops. Since macOS 14.5 no app can move another app's window to a different Space without disabling System Integrity Protection, so it restores display, position and size, not the desktop.
- If it does not start at login. Turn on "Open at Login" in its menu, or it cannot do anything after a restart.
The free trial lasts 14 days, with no account and no card.
Download the free trial How it works
Questions
Why do my windows open on the wrong monitor after a restart?
macOS can reopen your apps' windows after a restart, but each window is placed on the displays that exist while you log in. If a monitor wakes late, or two identical monitors come up in a different order, windows land on whatever screen is there first. A Hacker News user put it as macOS moving them all to whatever display woke up first.
What does Reopen windows when logging back in do?
It is the checkbox in the Restart and Shut Down dialogs. Apple's guide says to deselect it if you don't want open app windows to reopen when your Mac restarts. Leaving it selected brings the apps and their windows back.
Can I make apps always open on a specific monitor?
Yes, per app. Control-click its Dock icon, choose Options, and under Assign To pick Desktop on Display with the monitor's number. Apple's guide says the app then opens in the current space on that display.
Does Many Displays restore windows after a restart?
Yes, if it is set to open at login. Window IDs change after a restart, so it matches saved windows to the reopened ones by title, or when an app has a single window, and then moves those back. Windows it cannot match, and apps that do not reopen, are left as they are.