External monitor rearranges your windows on Mac? Fixes that work
You unplug your MacBook to go to a meeting. Every window jumps to the laptop screen. You come back, plug the monitor in — and they stay right there.
Updated October 22, 2026 · 5 min read
Why macOS does this
When a display disappears, macOS has to put its windows somewhere visible, so it moves them to the screens that remain. That part is reasonable.
The problem is the way back. When the monitor reconnects, macOS sometimes restores the old positions, especially if you plug the same monitor back in quickly and haven’t touched anything. But if you used the laptop in the meantime, opened new windows, changed docks, or plugged into a different monitor, the windows usually stay where they were dumped.
The situations that break your layout
- Undocking and redocking during the day.
- Home and office desks with different monitors: macOS doesn’t keep a layout for each.
- Two monitors that reconnect in a different order, or two identical monitors that swap places.
- Sleep and wake, when the monitor briefly drops its connection. See why your Mac moves windows after sleep.
- Different screen sizes: a window that was tall on a 27-inch monitor gets squashed on the laptop and stays squashed.
Fixes that work
1. Keep the physical setup consistent
Same monitor, same port, same dock. The more your desk looks like the setup macOS saw last time, the more often its own restore gets things right.
2. Check your display arrangement once
In System Settings → Displays → Arrange, make sure the monitors are laid out the way they sit on your desk. A wrong arrangement makes every move look strange, even when windows are technically restored.
3. Use an app that remembers a layout per setup
This is the only fix that covers every case above. Deskback remembers where every window was for each combination of monitors — laptop only, home desk, office desk — and restores it automatically when that combination comes back, after sleep or when you plug in. It handles several windows of the same app and restores sizes across different screens.
It isn’t a window manager: there’s nothing to set up and no shortcuts to learn. If it isn’t sure which window is which, it doesn’t move it.
Get early access — $9 launch price
What about Spaces?
If you use several desktops (Spaces), windows on other desktops can’t be moved until you switch to them. Deskback restores the current desktop right away and the others as you visit them.
FAQ
Why do my windows move to the laptop screen when I unplug the monitor?
macOS can’t leave windows on a screen that no longer exists, so it moves them to the displays that remain. When the monitor comes back, it doesn’t reliably move them back.
Can macOS remember a different layout for home and office?
Not on its own. An app like Deskback remembers one layout per monitor combination and restores it when that combination returns.
Do I need a window manager for this?
No. Window managers tile and snap windows. Restoring positions is a different job, and it can be done with zero setup.