Mac mini or Mac Studio puts every window on the main display after wake

28 October 2026 · Martín Acuña Lledó · Applies to macOS 13 Ventura through macOS 27

You leave your Mac mini or Mac Studio for the night, or just long enough for the monitors to go dark, and when you come back every window is stacked on the main display. The other monitors are empty. It happens after sleep, after the monitors turn themselves off, and often after a restart, and moving everything back is the first job of the day. A laptop at least has its own screen to fall back on; a desktop Mac only has the monitors, so everything lands on one of them.

Why desktop Macs do this

A common trigger is changing monitors. A typical story: a desk that behaved fine until one screen was replaced, and from then on every wake put all windows on the main display. A new monitor that drops its link on sleep, where the old one kept it, is enough to start it.

See which display macOS treats as main

In Terminal, this lists your displays and marks the main one:

system_profiler SPDisplaysDataType | grep -E "Main Display|Online"

Run it once before the Mac sleeps and once after you wake it. If the "Main Display: Yes" line moved to another monitor, macOS changed the main display during the wake, and the menu bar and your windows followed it. You can set the main display back in System Settings → Displays → Arrange by dragging the white menu bar onto the monitor you want.

Settings that reduce it

The full list, including dummy plugs and scripts, is in every fix for windows moving after sleep. If it mostly happens when you lock the screen and walk away, see Mac loses window positions when you lock it.

What those settings do not fix

How Many Displays handles it

Many Displays lets the monitors sleep and puts the windows back afterwards. It saves where every window is as you work, and the moment the Mac sleeps, locks or a display disconnects, saving freezes, so the pile on the main display is never recorded. When you come back, it waits until the displays have been stable for a few seconds, puts the arrangement, the main display, the resolution, the refresh rate and the rotation back first, and then returns every window to its physical display, position and size. It also does this when you log in, and it keeps one layout per combination of displays, so a different set of monitors is remembered separately.

You do not save layouts or press anything. If you ever want to restore by hand, Control-Option-Command-R does it. One limit that applies to every app: since macOS 14.5 no app can move another app's window to a different desktop (Space) without disabling System Integrity Protection, so it restores display, position and size, not the desktop.

Download the free trial How it works

Questions

Why does my Mac mini put every window on one monitor after sleep?

A Mac mini or Mac Studio has no built-in screen. When its monitors sleep and drop their DisplayPort or Thunderbolt link, macOS moves their windows to whatever display is left, and the first display to come back usually becomes the main one. The windows end up there, and macOS does not move them back when the other monitors return.

How do I choose which monitor is the main display?

In System Settings, Displays, Arrange, drag the white menu bar to the monitor you want as main. That decides where the menu bar and new windows go, but it does not stop macOS from moving windows when a monitor disconnects.

Does keeping the Mac mini awake fix it?

Partly. Turning off automatic sleep when the display is off avoids the Mac's own sleep, but the monitors still sleep and disconnect. To stop the daily case you also need the displays to stay on, with a screen saver instead of display sleep, or a monitor that keeps its link alive while asleep.