Wake the Mac and every window is piled on one display. Here is why, what to try for free, and how to get the layout back automatically.
You leave your Mac with windows spread across two or three monitors, come back, wake it, and everything has jumped to the main display or the laptop screen. It happens on MacBooks with an external monitor and on desktop Macs like the Mac mini with more than one monitor, on Apple Silicon and Intel alike. The windows are not lost, but putting them back by hand every morning gets old quickly.
Short version: while the Mac sleeps, a monitor can briefly look disconnected, so macOS moves its windows somewhere safe and usually leaves them there on wake. Try the free fixes below first. If they do not stick, SnapState can save your layout and restore it automatically on wake.
Why macOS moves windows to one display after sleep
Many monitors go into a deep power saving state while the Mac sleeps, and some drop their connection completely. From the Mac side, that often looks the same as unplugging the cable. macOS generally responds by moving the windows from the missing display onto a display that is still there, so nothing ends up off screen.
On wake, the monitor powers back up and macOS re-detects it, but it does not reliably send each window back to its earlier display and position. Displays can also wake at slightly different speeds, so windows may already have been moved by the time the slower monitor appears. The result is the familiar pile of windows on the main display. It is the same underlying behavior as windows moving after you unplug a monitor, just triggered by sleep instead of a cable.
Free and manual workarounds
These are worth trying before you pay for anything. Results vary by Mac, monitor, and cable.
- Drag windows back by hand. Always works, costs nothing, and is fine if it only happens now and then.
- Check the display arrangement.In System Settings > Displays, confirm the arrangement matches your physical desk and that the main display is the one you expect, so macOS treats the monitors consistently each time they reappear.
- Look at the monitor settings. Many monitors have options in their own on-screen menu related to deep sleep, power saving, or automatic input detection. Names vary by model, so check your monitor manual. Changing how deeply the monitor sleeps can help some setups keep the connection alive.
- If you use Spaces.The Displays have separate Spaces option in System Settings > Desktop & Dock, and assigning an app to a desktop from its Dock icon Options menu, can help some setups keep apps where they belong.
- Try Stay. Stay by Cordless Dog has been free since version 1.5.1. It stores window positions for each display combination you use and can restore them automatically as displays connect and disconnect. If Stay covers your needs, it is a good free choice. See SnapState vs Stay for how the two differ.
How SnapState fixes it, step by step
- Arrange your windows across every monitor. While all displays are awake and connected, put each window on the monitor and in the position you want to come back to.
- Save the arrangement as a named workspace. Capture the setup from the SnapState menu bar app and give it a clear name such as Desk, so it records window positions and sizes, the apps to relaunch, and the display layout.
- Arm the workspace to restore on wake. Turn on the wake from sleep trigger for that workspace. If your monitor takes a moment to reappear, also arm the monitor connect or matching display layout trigger so the restore runs once the display is back.
- 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.
- 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. A workspace captures the visible windows on the current desktop with their position and size, the apps needed to relaunch them, the monitor and display layout, and the active tab URL of each window in Safari, Chrome, Edge, Brave, Arc, and Chromium once Automation permission is granted. If a monitor is missing on wake, saved window frames are remapped onto the displays you have now, and the monitor connect trigger can put things right once it returns.
The same approach helps if your windows rearrange when you close the MacBook lid in clamshell mode or switch your monitor input.
Practical details
SnapState costs $9.99 as a one-time purchase, with a lifetime license for up to three Macs and a 14-day refund. Version 2.5.2 requires macOS 15.7 or later on Apple Silicon and Intel Macs and ships as a signed, notarized DMG rather than through the Mac App Store. It needs Accessibility permission to move windows, and workspace data stays local on your Mac as JSON in ~/Library/Application Support/SnapState/.
Honest limitations
SnapState saves and restores only the visible windows on the current desktop, so it does not save or restore macOS Spaces. If your windows are spread across several Spaces, only the current desktop is covered. Firefox is not supported, and only the active tab URL per supported browser window is restored, not full tab sets. It is not a tiling or snapping window manager, and it requires macOS 15.7 or later.
Common questions
Why do all my windows move to one monitor after my Mac wakes from sleep?
Many external monitors power down deeply while the Mac sleeps, and some drop their connection entirely. macOS generally treats that as a disconnected display and moves its windows onto a display that is still available, often the built-in laptop screen or the main display. When the monitor comes back, macOS re-detects it but does not reliably send each window back to its earlier display and position.
Does this happen on a Mac mini or other desktop Mac too?
It can. The same pattern is often reported on desktop Macs such as the Mac mini with two or more monitors, where windows gather on one display after wake because another display was slower to reappear or briefly looked disconnected.
Is there a free way to stop windows jumping to the main display after sleep?
You can check the display arrangement and main display in System Settings > Displays, look in your monitor on-screen menu for options related to deep sleep or automatic input detection (names vary by model), or try Stay by Cordless Dog, which has been free since version 1.5.1 and restores window positions per display setup automatically.
How does SnapState fix windows moved to the laptop screen after waking?
Save a workspace while every window is where you want it, 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 remaps saved frames onto the current displays if the setup differs.
What does SnapState not do here?
It restores the visible windows on the current desktop only, so it does not save or restore macOS Spaces. Firefox is not supported, only the active tab URL per supported browser window is restored, it is not a tiling window manager, and it requires macOS 15.7 or later.