Mac guide
Mac apps forget their window position on an external monitor? Why, and how to fix it
By Aqib Javed · Updated Nov 27, 2026
macOS has no setting that remembers which monitor each window belongs to. Apps save a window's last position and size, and if that screen isn't connected when the window comes back, macOS places it on a screen that is, often shrunk to fit. Plug the monitor in later and nothing moves back. Keep Close windows when quitting an application off in System Settings, Desktop & Dock, and for windows that return to their monitor by themselves, use an app such as Stay, Moom or DisplayShift.
Why windows come back in the wrong place or size
- Apps save a window's position on the desktop. When a window reopens at a spot that belongs to a screen you've unplugged, macOS moves it so its top edge lands on a screen that's there, which is usually the MacBook.
- Unplugging moves the monitor's windows onto the screens that remain, and windows too big for the MacBook screen are made smaller. Reconnect the monitor and they stay where they were put, at the smaller size.
- Quit an app while its windows sit on the MacBook and it saves that spot. The next time you open it, even with the monitor connected, it opens on the MacBook.
- macOS saves a display arrangement for each set of monitors. A different port, dock or adapter, or two identical monitors, can make it look like a new set, so the saved positions point at the wrong screen.
- Some apps keep their own window size between launches and some always open at a default size, so two apps can behave differently on the same desk.
Settings in macOS that decide what comes back
- System Settings, Desktop & Dock, Close windows when quitting an application. Turned on, an app's windows don't reopen the next time you open it. Turn it off and apps reopen their windows where they were.
- Reopen windows when logging back in, a checkbox in the Restart and Shut Down dialogs, brings back your apps and their windows after a restart.
- System Settings, Displays, Arrange: keep the same screen as the main display (the one with the white menu bar). Apps without a saved position open there.
- To choose which display an app opens on, Control-click it in the Dock, choose Options, and under Assign To pick Desktop on Display. It decides where the app starts, not where windows go when a monitor comes and goes.
None of these makes macOS move windows back when a monitor reconnects. MacStories' review of macOS 27 Golden Gate says it restores window positions and desktops, and remembers which screen they belong to, better than before, though the reviewer only tested it lightly. Apple's support pages list no setting for it.
Habits that keep positions from drifting
- Connect the monitor before you open your apps in the morning, so windows open on a screen that exists.
- Before you unplug, quit apps you'll reopen later with Command Q while their windows are on the monitor. They save that spot instead of the MacBook one.
- Use the same port and dock each time. A monitor on a different port can count as a new display setup.
- When a window lands at the wrong size, choose Window, Fill (Fn Control F on macOS 15 and later) to make it fill the screen it's on, or Window, Move & Resize for halves and quarters.
Apps that remember window positions for each monitor setup
- Stay (free on the Mac App Store, macOS 14.6 or later) stores a set of windows for each combination of displays you use and can restore them automatically as displays connect and disconnect. Reviews mention misses with windows on other desktops and apps with many windows.
- Moom 4 ($15 from Many Tricks; the older Moom Classic is $6.99 on the Mac App Store) saves window layouts. A layout can apply itself when you switch to a set number of displays or when the display arrangement matches, and it can adapt to a different display size.
- Display Maid ($5.99 on the Mac App Store) saves window positions for each display setup and can restore them when a display connects or disconnects. It can't save or restore windows on other desktops, or full screen apps.
Windows back in their spots with DisplayShift
- Download DisplayShift from its page, unzip it, and drag it into Applications. It runs on macOS 14 Sonoma or later and is free for 7 days, then $6.99 once.
- Open it and allow Accessibility access once, because macOS only lets approved apps move other apps' windows.
- In Settings, Layouts, leave Remember my layout and Put back after sleep switched on.
- Plug in your monitor. DisplayShift offers to put every window back where it was on that screen, and the picker lists any window that isn't there yet so you can tick what moves.
DisplayShift remembers where everything was. Unplug and your MacBook layout comes back. Plug in again, wake from sleep or ride out a dock hiccup, and every window returns to its spot, on its own desktop and in its Split View. Every move has an Undo.
Windows go back on their desktops, even one you removed, and full screen apps go back into full screen on their display. Layouts are kept for each set of screens, so your office monitor and your home display don't overwrite each other. Keep my screen arrangement (Settings, Screens) puts your arrangement and main display back if macOS swaps them after a plug-in or wake.
Questions
Why doesn't my Mac remember window positions on my external monitor?
- Apps save where a window was on the desktop, with no link to a particular monitor. When the monitor isn't connected, macOS moves those windows onto the MacBook, and it doesn't move them back when the monitor returns.
How do I make a Mac app remember its window size and position?
- Turn off Close windows when quitting an application in System Settings, Desktop & Dock, then quit the app with Command Q while the window is where you want it. Most apps that restore their windows reopen it there.
Why are my windows smaller after I reconnect the monitor?
- macOS shrank them to fit the MacBook screen when the monitor disconnected, and it doesn't resize them again when the monitor comes back. DisplayShift returns each window to the place it had on that monitor.
Does DisplayShift change where an app opens when I launch it?
- No. It acts when a display connects, after sleep and when you move windows. Use the Dock's Assign To option for where an app opens at launch.
Is there a free way to restore window positions per monitor setup?
- Stay is free on the Mac App Store and can restore windows automatically as displays connect and disconnect. Hammerspoon is free too, but you write the script yourself.