Sleep and wake guide

Mac windows move after sleep: why it happens and how to fix it

Covers macOS 26 Tahoe and macOS 27 Golden Gate. Last updated 2026-11-11.

Your Mac moves windows after sleep because a monitor that wakes slowly looks like an unplugged display, so macOS pulls its windows onto a screen that is still there. macOS does not move them back when the monitor returns. Free settings reduce how often it happens. To put windows back every time, save the desk as a SnapState workspace and arm its wake trigger.

Short version: turn off deep sleep on the monitor, try a direct cable, then restore a saved layout on wake. SnapState does the last part for $9.99 once. Jump to: free fixes, automatic restore, DisplayLink, identical monitors, windows shrink, Spaces, lock screen, macOS 27.

Get SnapState for $9.99One-time purchase · up to three Macs · 14-day refund · macOS 15.7 or later
Save a workspace, then restore its app windows, Spaces and browser tabs.

Why do Mac windows move after sleep?

  • The monitor wakes slower than the Mac. Apple silicon Macs wake almost instantly. Many monitors take a few seconds. In that gap macOS sees no external display and moves its windows to a screen that is still there.
  • Deep sleep looks like an unplug. Some monitors drop the connection while asleep. To the Mac that is the same as unplugging the cable. On a desktop Mac, see Mac mini windows all move to one screen.
  • Docks and hubs add delay. USB-C hubs and docks can take longer to re-detect screens, so the gap is wider.
  • The arrangement comes back, the windows do not. When the monitor reappears, macOS can restore the display arrangement while leaving the windows where it moved them.

Which symptom do you have? Every window on one screen is the base case. If windows also shrink, see windows get smaller. If two matching monitors trade places, see identical monitors. If you use a dock with DisplayLink, see DisplayLink. If windows land on the wrong desktop, see Spaces.

What free fixes should you try first?

  1. Turn off monitor power saving.In the monitor's on-screen menu look for deep sleep, eco, auto power off or automatic input detection. Names vary by model. Turning them off keeps some monitors connected during sleep.
  2. Connect directly. Hubs, docks and adapters make a monitor slower to reappear. Try a direct cable to see if it changes anything.
  3. Check Displays.In System Settings > Displays, confirm the arrangement matches your desk and the main display is the one you expect.
  4. Stop the Mac sleeping when only the display turns off. On a desktop Mac or a plugged-in laptop, the Energy or Battery settings can prevent automatic sleep when the display turns off.
  5. Try a free restorer. Stay by Cordless Dog restores window positions per display setup. See SnapState vs Stay for how they differ.

These reduce how often it happens. None of them makes macOS put windows back once a screen was briefly missing.

How do you make SnapState restore windows on every wake?

  1. Arrange your windows across every monitor. While every display is awake and connected, put each window on the monitor, Space and position you want to come back to.
  2. Save the arrangement as a named workspace. Capture the setup from the SnapState menu bar app and name it, for example Desk. It records window positions and sizes, the apps to relaunch, and the display layout.
  3. Arm the workspace to restore on wake. Turn on the wake from sleep trigger for that workspace. If your monitor is slow to reappear, also turn on the monitor connect or matching display layout trigger so a restore runs once the display is back.
  4. Let the Mac sleep and wake as usual. When the Mac wakes and the displays return, SnapState moves each saved window back to its saved display, position and size.
  5. Restore by hand if you ever need to. If something still lands in the wrong place, pick the workspace from the menu bar or press its Control-Command-1 to 6 shortcut.

SnapState is a native macOS menu bar app. If a monitor is still missing when the Mac wakes, saved window frames are remapped onto the displays you have, and the monitor connect trigger puts things right once it returns. You can also restore any saved desk with one shortcut. To capture a layout in the first place, see how to save a window layout on Mac.

Two identical monitors swap windows after sleep

Matching monitors are the most common dual-screen setup, and the hardest for macOS to keep straight. Two screens that report nearly the same identity can be assigned in a different order after sleep, a restart or redocking, and the windows follow.

  • Plug each monitor into the same port and cable every time.
  • Connect one screen directly and the other through the dock, so they wake differently.
  • Turn off deep sleep, auto power off and auto input switching on both monitors.
  • If the arrangement keeps flipping, set it again in System Settings > Displays > Arrange.

A saved SnapState workspace restores the windows once both screens are back. Reliability on two identical monitors across several Spaces is an area we are still improving; if it fails for you, email the developer. See also windows jump when the display arrangement changes.

Windows get smaller after sleep

While the Mac wakes, the external display can briefly report a lower or different resolution. macOS fits your windows to that smaller screen and does not enlarge them again.

  • In System Settings > Displays, try the default resolution instead of a scaled option.
  • Turn off monitor power saving so it stays connected.
  • Wake the monitor a few seconds before you unlock the Mac.
  • Try another cable; some people see fewer problems over DisplayPort or USB-C than HDMI. It depends on the monitor.

A workspace stores each window's frame, which is its size and its position, and the wake trigger puts the saved frames back. SnapState cannot stop the resolution glitch itself, and an app that enforces its own window size may resize again. See also windows resize after changing display scaling.

Windows land on the wrong Space after sleep

macOS ties windows to a Space and a display. When a display drops, its windows are pulled onto the remaining screen and often onto whichever Space is active there.

  • Turn off Automatically rearrange Spaces based on most recent use in System Settings > Desktop & Dock > Mission Control so desktops keep their order.
  • Right-click an app in the Dock, choose Options, then Assign To This Desktop. That pins the app to one Space but not its size or position.
  • Test the Displays have separate Spaces option; macOS logs you out when you change it.

SnapState saves windows on every Space (Include windows on all Spaces is on by default). Each window goes back to the Space it was saved on, even when windows of one app are spread across several Spaces, full-screen windows return to full screen, and other Spaces are placed when you switch to them. Apps pinned with Assign To are left to macOS. See restore windows on multiple desktops and Mission Control Spaces reset.

Windows move after the lock screen or screen saver

When the display sleeps or the screen saver starts while the Mac stays awake, the monitor can drop and return the same way it does during full sleep, and windows move. The free fixes above apply. In SnapState, arm the monitor connect trigger as well as the wake trigger so the restore also runs when the display comes back without a full sleep. See also windows move when the monitor turns off.

Did macOS 26 or macOS 27 change this?

The cause and the fixes are the same on recent macOS versions. MacRumors reported in June 2026 that macOS 27 Golden Gate adds native ultrawide support, and coverage of the release says display arrangements are preserved across connections. That helps the monitors keep their order. It does not record where each window was, so a restore step is still needed. Checked 2026-11-11; we did not find Apple's own documentation for the arrangement claim. SnapState supports macOS 15.7 or later and later, including macOS 26 and 27. If you use an ultrawide, see the ultrawide layout guide.

What are the practical details?

SnapState 2.11.5 costs $9.99 as a one-time purchase, with a license for up to three Macs and a 14-day refund. It requires macOS 15.7 or later on Apple Silicon and Intel Macs and ships as a signed, notarized DMG. It needs Accessibility permission to move windows, and Automation permission if you want browser tabs reopened. Workspace data stays on your Mac.

What are the honest limits?

SnapState restores after macOS has moved things; it does not stop the move. It does not rearrange menu bar icons, change the display arrangement or main display, or save browser tab groups. Firefox tabs are saved too, with no permission prompt. It is not a tiling window manager. Workspaces cannot be edited after they are saved; re-capture to update one.

Frequently asked questions

Why do my windows move to one screen after my Mac wakes from sleep?

Many external monitors power down deeply while the Mac sleeps, and some drop the connection entirely. macOS treats that like an unplugged display and moves its windows onto a screen that is still available, usually the built-in screen. When the monitor returns, macOS re-detects it but does not reliably send each window back.

Does macOS 27 fix windows moving after sleep?

Not in the reports we found. MacRumors reported in June 2026 that macOS 27 Golden Gate preserves display arrangements across connections, which covers where the monitors sit, not where each window was. SnapState customers on macOS 26 and 27 still use the same fix: a saved workspace restored on wake.

Why do my windows shrink after sleep?

While the Mac wakes, the monitor can briefly report a lower or different resolution. macOS fits your windows to that smaller screen and does not enlarge them when the full resolution returns. Restoring saved window frames on wake puts the sizes back.

Why do two identical monitors swap windows after sleep?

Two monitors of the same model report almost the same identity, so after wake macOS can assign them in a different order, especially through a dock. Windows follow the swap. Plugging each monitor into the same port every time and restoring a saved layout both help.

Does this happen with a DisplayLink dock?

Yes, and it is common. DisplayLink screens come back after the built-in display, so there is a gap where macOS sees only the laptop screen and moves every window onto it. Update DisplayLink Manager, turn off monitor deep sleep, and restore a saved layout when the screens return.

Why do windows end up on the wrong Space after sleep?

macOS ties windows to a Space and a display. When a display drops, its windows are pulled onto the remaining screen and often onto whichever Space is active. Turning off Automatically rearrange Spaces based on most recent use in System Settings keeps the desktops in order.

Do windows also move when I only lock the screen?

Sometimes. If the display sleeps or the screen saver starts while the Mac stays awake, the monitor can drop and come back in the same way. The fixes are the same, and a monitor connect trigger covers it.

Is there a free way to stop windows jumping after sleep?

Start with monitor deep sleep, a direct cable, and System Settings > Displays. Stay by Cordless Dog is a separate free app that restores window positions per display setup; check its own page for current compatibility with your macOS version.

How does SnapState fix it?

Save a workspace while every window is in place, then arm it to restore on wake from sleep, when a monitor connects, or when a matching display layout appears. SnapState moves the saved windows back, relaunches missing apps and reopens the saved browser tabs. It costs $9.99 once for up to three Macs and needs macOS 15.7 or later.

What does SnapState not do here?

It does not stop macOS from moving the windows in the first place; it puts them back afterwards. Apps pinned with Dock > Options > Assign To are left to macOS, and it is not a tiling window manager.

Get SnapState for $9.99One-time purchase · up to three Macs · 14-day refund · macOS 15.7 or later