You set up two or three monitors, walk away, and come back to every window stacked on one of them. On a Mac mini, Mac Studio or iMac this is usually a display-list change, not a broken app.
To stop a Mac mini from leaving your windows piled on one monitor, first remove the cause you control (a flaky cable, a hub, a monitor that powers off at night), then save a workspace with your windows where you want them and restore it automatically when the Mac wakes or the displays reconnect. macOS will not move a window back to its earlier screen on its own. The steps below cover why a desktop Mac does this and what to check, and how SnapState (2.11.5) restores the arrangement.
1. Why a desktop Mac does this
A MacBook always has its built-in screen, so it is rarely left with zero displays. A Mac mini, Mac Studio or iMac driving external monitors has a display list that depends on those monitors being awake and correctly connected. If a monitor sleeps, is switched off with its own power button, or takes longer to answer than the Mac does after wake, macOS can briefly work with fewer displays. Anything that lived on a missing screen is moved to one that is still there, and it stays there afterwards.
This is the same mechanism described in Mac windows move after sleep and Mac windows move when the monitor turns off. This page is about the desktop Mac version of it, where there is no lid or built-in display involved.
2. What to check on the hardware side
Try a direct cable from the Mac to each monitor, a different port, and one fewer adapter or hub. If a monitor has its own input selection or power-saving options, test with those off. If you use a KVM or switch the monitor to another computer, windows move for the same reason; see windows moving after a KVM switch and switching monitor input.
If the displays arrange themselves differently after a restart, open System Settings → Displays and check the arrangement and the main display, because a swapped main display makes everything look wrong even when the windows are fine. See the display arrangement guide.
3. What macOS gives you without an app
You can drag windows back by hand, use Window → Move to [display] where the app offers it, or use Mission Control to find stacked windows. If you want fewer surprises, avoid switching a monitor off at its power button and let the Mac manage display sleep instead. None of this records where each window belonged, so after every wake you rebuild the layout by hand. Reopening apps after a restart is a separate setting; see Reopen windows when logging back in.
Where built-in tools fall short
macOS has no saved layouts. It reacts to the display list as it is at that second. A tiling app can snap the window you are working in, but it will not recall the position of every window across three monitors after the Mac has shuffled them.
How SnapState restores a desk after wake
SnapState is a native macOS menu bar app. With your monitors connected and windows arranged, save a named workspace. It stores every window on every Space with position and size, the display layout, the apps needed to relaunch missing windows, full-screen state, and the open tabs of each supported browser window (Safari, Chrome, Edge, Brave, Arc, Chromium, and Firefox) when browser permission is granted.
Open that workspace in Settings and choose an automatic trigger: wake from sleep, display connect, or matching saved display layout. Each trigger has a Full, Layout Only or Launch Only behavior; Layout Only moves windows without launching anything. If a monitor wakes late, the matching-layout trigger is a good fit because it fires when your usual set of screens is back. You can always restore from the menu bar or with Control-Command-1 through 6.
Honest limits
SnapState does not stop windows from moving at the moment a display drops, and it does not change Displays settings or fix a bad cable. It is not a tiling window manager. Space moves use private macOS APIs, so behavior can vary by macOS version. It requires macOS 15.7 or later on Apple Silicon and Intel.
Questions people ask
Why do my Mac mini windows all land on one monitor after sleep?
When the displays sleep or a monitor powers off, macOS can briefly see fewer screens than you have. Windows on a screen that disappears are moved onto one that remains. When the second monitor wakes and reconnects, macOS does not move them back to where they were. Apple has no setting that records a per-window home screen for this case.
Does it matter that a Mac mini has no built-in screen?
It changes the cause, not the result. A laptop has a built-in display that is always there. A desktop Mac depends entirely on the external displays, so a monitor that takes a few seconds to wake, a cable or adapter that drops the signal, or a monitor that you power off at night can all change the display list. Windows are then placed on whatever macOS can see at that moment.
Will a different cable or adapter fix it?
It can reduce how often a display drops out, so it is worth trying a direct cable, a different port, or removing a hub from the chain. It will not remove the problem entirely, because a monitor that is turned off or asleep is still a display that disappears and comes back.
Can macOS put windows back by itself after the monitor wakes?
Not reliably. Windows that stayed put because the display never dropped are fine, but once macOS has moved them there is no built-in command to return a window to its earlier screen, size and position.
How does SnapState restore the layout on a Mac mini?
Save a workspace once with the windows where you want them. Set its automatic trigger to wake from sleep, display connect, or a matching saved display layout, then SnapState restores the windows after the screens come back. You can also restore by hand from the menu bar or with Control-Command-1 through 6. If a saved display is missing, SnapState remaps the saved frames onto the displays that are connected.