Tabtile

Why your windows move after sleep, and how to keep them in place

You leave the desk with windows neatly spread across a monitor and the laptop. You come back, wake the Mac, and everything is piled on one screen or shrunk into a corner. Here is why it happens, what macOS settings help, and how to have the layout come back on its own.

Why it happens

  • The monitor disappears for a moment. When a display goes away, macOS moves its windows to the screens that are left. Some monitors, especially over USB-C, Thunderbolt docks or DisplayPort, drop off entirely while they sleep, so for macOS this is the same as unplugging them.
  • It comes back differently. On wake, the monitor may answer later than the Mac, through another port of a hub, or at another resolution. macOS then doesn't always recognise where the windows were and leaves them where it moved them.
  • Desktops get shuffled. With "Displays have separate Spaces" on, each screen has its own desktops; when one screen is gone, its desktops and their windows join the remaining one.

What helps in macOS

  • Keep desktops in order. In System Settings → Desktop & Dock, turn off "Automatically rearrange Spaces based on most recent use", so desktops keep their places.
  • Give apps a desktop. Control-click an app in the Dock, choose Options, and assign it to this desktop. It opens there, though macOS doesn't remember where on the screen.
  • Connect the monitor directly. A cable straight into the Mac is often steadier than a hub, and a monitor setting that keeps it awake or prevents deep sleep, if it has one, helps it come back the same way.

None of these puts a window back in its exact place. For that, something has to remember where each window stood.

How Tabtile brings the layout back

  • It remembers every monitor. When a monitor is plugged in again or the Mac wakes up, display modes, rules and where windows stood come back. No rearranging.
  • Tiles keep their apps. You draw a preset of tiles once and give each its apps, so every window has a known place, including the ones that open later.
  • A preset for each desktop and display. The same desktop can look one way on the monitor and another on the laptop screen, and the right preset turns on when the monitor comes or goes.
  • The monitor's settings come back too. Tabtile sets the resolution and refresh rate you picked again when the monitor returns, and can turn the built-in screen off while the monitor is connected.

Free for 7 days, then $11.99 as a one-time purchase. macOS 14 Sonoma or later.

macOS settings checked on 25 November 2026 against macOS 27. See also: ultrawide monitor on a Mac.