Skip to content
PaneFold
Guides · by Anmol Sethi · November 6, 2026

Why Mac windows move when you unplug a monitor

You unplug your laptop for a meeting. When you come back and plug in, every window is still crammed on the laptop screen. This is normal macOS behaviour, and macOS has no setting that fixes it.

Why it happens

When a display disappears, macOS has to put its windows somewhere visible, so it moves them to a display that’s still there. That part is sensible. The trouble is that it doesn’t reliably send them back: when the monitor returns, macOS treats it as a new, empty place.

Things worth trying first

These help a little, and cost nothing:

  • Check Displays have separate Spaces in System Settings → Desktop & Dock. It changes how windows are tracked per display.
  • Turn off Automatically rearrange Spaces based on most recent use in the same place, so desktops stay in order.
  • Assign apps to a desktop: right-click the app in the Dock, then Options, then choose a desktop. This holds which desktop an app opens on, not where its windows sit.
  • Close the lid only after the monitor is connected, where you can. Reconnecting while awake tends to shuffle less than waking up attached.

What actually fixes it

You need something that records where windows were for each set of displays, then puts them back when that set returns. That’s what monitor memory is in PaneFold: it saves a layout per set of displays, waits for macOS to settle after a change, and restores every window on connect, disconnect and wake.

It’s a good reason to buy on its own, and it doesn’t need Scenes. Stay is an older app that does the same single job, if that’s all you’re after.

If you use different monitors

At an office and at home, the displays differ. PaneFold saves each by role too (main, second, laptop), so a layout built at one desk is still a sensible start at the other.

Questions

Does this happen with every monitor?

Yes, it’s how macOS handles a display going away. It tends to be worse with docks and with DisplayLink adapters, which can take longer to come back.

Will windows also move when my Mac sleeps?

They can. Some monitors disconnect during sleep, and macOS treats that as unplugging. PaneFold restores the layout on wake too.

Monitor memory, in detail

Ask an AI about PaneFold