Mac windows on the wrong display after sleep? Why it happens and how to fix it

Updated 1 October 2026 · 2 min read · by

Quick answer

While your Mac sleeps, some monitors and docks power down far enough that macOS sees them as disconnected, so it moves their windows to another screen. When you wake the Mac, the monitor reappears but the windows don't always go back. Updating your dock's firmware, trying another cable or port, and keeping your display arrangement consistent usually helps. An app like Anchor can also put everything back automatically.

Why sleep scrambles windows

To macOS, a display that stops responding is a display that's gone. Many monitors enter a deep power-saving state when the Mac sleeps, and many USB-C and Thunderbolt docks briefly drop their video connection while asleep or waking up. If that happens, macOS does what it always does when a display disappears: it moves that display's windows onto one that's still there. By the time you sit down, the monitor is back, but your windows aren't.

It tends to happen more with:

How to fix it

  1. Update macOS. Apple regularly fixes display wake issues. Open Apple menu › System Settings › General › Software Update.
  2. Update your dock or adapter's firmware. Most dock makers publish firmware updaters. Wake and disconnect bugs are among the most common fixes.
  3. Try a direct connection. Connect the monitor straight to the Mac with a good USB-C, Thunderbolt or HDMI cable for a day. If the problem goes away, the dock or adapter is the cause.
  4. Keep ports consistent. Plug each monitor into the same port every time so the Mac sees the same arrangement when it wakes.
  5. Check the arrangement after waking. In System Settings › Displays, click Arrange and make sure the displays and menu bar are where you expect. If the Mac swapped two identical monitors, drag them back.
  6. Get your windows back quickly. Drag each window back, or let a layout app restore them. If you use macOS Sequoia or later, tiling shortcuts like Fn Control Left Arrow help resize a window once it's on the right screen.

Quick diagnosis

What you seeLikely causeTry first
Everything on the laptop screen after wakingThe monitor or dock disconnected during sleepDock firmware update; direct cable test
Windows on the other external monitorTwo identical monitors swapped identitiesSame ports every time; check Arrange
Only after long sleepsDeep power saving on the monitor or dockCheck the monitor's own power-saving menu
Monitor shows no picture after wakeThe connection didn't renegotiateUnplug and replug the cable, or try another port

Is my Mac broken?

Almost certainly not. Windows moving after sleep is a side effect of how displays connect and disconnect, not a hardware fault. If a monitor regularly fails to show a picture at all after waking, though, test with another cable and port, and contact the monitor or dock maker if it continues.

Questions people ask

Why are all my windows on one screen when my Mac wakes up?

Usually because a monitor or dock disconnected while the Mac was asleep. macOS moves windows off a display that disappears, and doesn't always move them back when it returns.

Can I stop my monitor from disconnecting during sleep?

Often, yes. Updating macOS and your dock's firmware fixes many cases. Testing a direct cable instead of a dock tells you which part is responsible.

Why do my two identical monitors swap after sleep?

Monitors of the same model can look alike to the Mac. If they wake in a different order, macOS can mix them up. Keeping each one in the same port helps; apps that use each monitor's serial number can tell them apart.

Does this happen with the lid closed?

It can. In closed-display mode the external display is the Mac's only screen, so if it drops out during sleep, windows have to move when it comes back too.