Spaces guide

Mac windows lost across Spaces after sleep.

You wake the Mac and windows from three desktops are stacked on one, or each Space looks rearranged. Here is why, and how to get every Space back.

When a Mac sleeps with an external monitor attached, the display often drops off. macOS moves its windows onto a screen that is still there, and that can shuffle windows between Spaces too. When you wake it, macOS rarely puts them back. SnapState saves windows on every Space and puts each Space's layout back when you switch to it, automatically on wake or monitor reconnect.

Recommended fix: SnapState. SnapState restores layouts across multiple Spaces (apps go back to the Space they were saved on, full-screen windows return to full screen, and windows on other Spaces are placed when you switch to them). It also relaunches apps and reopens all open browser tabs. $9.99 one-time, up to three Macs.

Why does this happen?

macOS ties windows to a desktop (a Space) and to a display. When the Mac sleeps, many external monitors drop their DisplayPort or Thunderbolt link. macOS treats that like an unplugged screen and pulls its windows onto a remaining display, and often onto whichever Space is active there.

Mission Control can also reorder the Spaces themselves. The setting Automatically rearrange Spaces based on most recent use, in System Settings > Desktop & Dock, moves desktops around as you use them, so Desktop 2 may not be the desktop you expect after waking.

What free settings help?

  • Turn off automatic Space rearranging. In System Settings > Desktop & Dock > Mission Control, turn off Automatically rearrange Spaces based on most recent use so desktops keep their order.
  • Assign apps to a desktop. Right-click an app in the Dock, choose Options, and pick Assign To This Desktop. That keeps the app on one Space, but not its window size or position.
  • Test Displays have separate Spaces. The option in Desktop & Dock changes how Spaces attach to each screen. macOS logs you out when you change it, so try it at a quiet moment.
  • Drag windows back. Mission Control lets you drag windows between desktops. It works, but it is slow when it happens every morning.

These help macOS keep desktops in order, but none of them save window sizes and positions on each Space.

How does SnapState restore every Space?

  1. Set up your desktops. Put each window where you want it on each Space.
  2. Capture a workspace. From the SnapState menu bar, save and name it. With Include windows on all Spaces on (the default), windows on every Space are saved.
  3. Restore. Click the workspace, press its Control-Command shortcut, or arm it for wake and monitor connect. The current Space is restored at once.
  4. Switch Spaces. Each other Space's layout is restored when you switch to it.

How do the options compare?

FeatureSnapStatemacOS built-inFixing it by hand
Saves window position and size on every SpaceYesNoNo
Restores each Space's layout when you switch to itYesNoBy hand, one window at a time
Relaunches missing appsYesNoNo
Reopens all open browser tabsYes (Safari and Chromium browsers)NoNo
Restores after sleep, wake, or a monitor reconnectYes, automatic triggersNoNo
Keeps an app on one desktopRestores where its windows were savedYes, Dock Options > Assign ToNo
Cost$9.99 once, up to three MacsFreeFree, but slow

See SnapState restore a workspace

Questions and answers

Why are my Mac windows on the wrong Space after sleep?

A sleeping external monitor often drops its link, so macOS moves its windows to a screen that is still connected. Automatic Space rearranging can also change the order of desktops. On wake, macOS does not reliably move everything back.

Can SnapState restore windows on every Space?

Yes. SnapState restores layouts across multiple Spaces (apps go back to the Space they were saved on, full-screen windows return to full screen, and windows on other Spaces are placed when you switch to them). Capture once with your desktops set up, then restore from the menu bar, a Control-Command shortcut, or automatically on wake.

Does SnapState move a window to a different Space?

Yes, since 2.7.2. When an app opens on the wrong desktop, SnapState sends it back to the Space it was saved on, and windows saved in full screen return to full screen. macOS moves an app with all of its windows, so an app with saved windows on several Spaces is not split between them. Re-save workspaces made before 2.7.2.

Is there a free way to fix this?

Partly. Turning off automatic Space rearranging and assigning apps to desktops from the Dock help. Neither restores window sizes, positions, closed apps, or browser tabs.

How much does SnapState cost?

$9.99 once for up to three Macs, with a 14-day refund. It needs macOS 15.7 or later and runs on Apple Silicon and Intel.

What are the practical details?

SnapState 2.7.2 is a native macOS menu bar app for macOS 15.7 or later on Apple Silicon and Intel. It costs $9.99 once for up to three Macs, with a 14-day refund, and updates itself. It needs Accessibility permission to move windows, and workspace data stays on your Mac. Firefox tabs are not supported.

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