Why Rectangle or Magnet do not put windows back after sleep

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

Rectangle and Magnet are two of the most popular window apps on the Mac, and people often expect them to fix windows that pile up on one screen after sleep. They do not, and that is not a bug: they snap a window when you ask, and they do not keep a record of where windows were. This page covers what their own docs and issue trackers say, what Rectangle Pro adds, the fixes without another app, and where my app differs. I have not tested Rectangle Pro or Magnet for this page.

Snapping is not remembering

Both act on one window at the moment you press a shortcut or drop a window on an edge. After that, the window is just a window to macOS. When the monitors disconnect during sleep, macOS moves their windows to a screen that is still there, and neither app has a saved position to send them back to.

What Rectangle's issues show

Two Rectangle issues describe windows moving after a wake, and in both its developer pointed at macOS:

That second reply is the core of it. Putting windows back after sleep means watching for the wake, waiting until the monitors are really back, and moving windows to a saved position. That is a different job from snapping.

Rectangle Pro layouts

Rectangle Pro, the paid version with a 10-day trial, has layouts. According to its layouts documentation, a layout lists apps with a preset or an exact size and position, and a destination display. It can be applied with a shortcut or "Apply when" a display is connected or disconnected, when waking from sleep, or when a window opens.

So Rectangle Pro can act on wake. The difference is what it puts back: the layout you built and saved, not the positions you had a minute before the Mac slept. If you keep the same apps in the same places every day, that may be all you need. If your windows change during the day, the layout will not follow them unless you update it.

Fixes without another app

How Many Displays handles it

Many Displays does the remembering part and no snapping. It saves each window's display, position and size about 1.5 seconds after it moves, freezes saving on lock, sleep and display changes so it never saves the mess, and puts every window back on its physical display once the displays have been stable for a few seconds. There is no layout to build: it puts back what you had, including windows a tiling tool placed. For three minutes after a restore it also undoes moves nobody asked for, which covers windows that macOS nudges again shortly after a wake.

Where it does not help: it has no shortcuts or snap areas, so it does not replace Rectangle or Magnet, and it has nothing like named layouts. It skips full-screen, minimised and hidden windows, and it cannot move windows between Spaces since macOS 14.5. On the MacBook alone, with no external displays, it stays idle.

The two kinds of app run side by side. Many Displays is $19 one-time, needs macOS 13 or later and the Accessibility permission, and the free trial lasts 14 days, with no account and no card.

Download the free trial How it works

Questions

Does Rectangle remember window positions after sleep?

No. Rectangle moves and resizes windows when you use a shortcut or a snap area. Its README and site do not describe saving or restoring positions, and in two issues about windows moving after wake its developer said the cause is on the macOS side.

Does Magnet restore windows after sleep?

Magnet's site describes snapping windows into tiles by dragging, shortcuts or the menu bar. It does not mention saving layouts, sleep or wake.

Can Rectangle Pro put windows back on wake?

Its layouts can be applied when a display connects or disconnects, when waking from sleep, or with a shortcut, according to its docs. A layout holds the preset or position you saved for each app, so it puts back the layout you built, not whatever you had before the Mac slept. I have not tested it.

Can I keep Rectangle or Magnet and use Many Displays?

Yes. Many Displays only moves windows in the seconds after your displays come back. The rest of the time it just watches and saves where windows are, including where a tiling tool put them.