MacBook clamshell mode: keep your windows in place
Clamshell mode — MacBook closed, external monitor, keyboard and mouse — is the cleanest desk setup there is. Until you open the lid, or the Mac sleeps, and every window ends up somewhere else.
Updated October 22, 2026
Why clamshell mode shuffles windows
In clamshell mode the built-in screen is off, so the external monitor is the only display. Two things can break your layout:
- Opening the lid. The built-in screen turns on and becomes a second display. macOS may move windows onto it or change which display is main.
- Sleep and wake. When the external monitor wakes slower than the Mac, macOS can briefly see no external display at all — and move every window onto the built-in screen, even with the lid closed.
From macOS’s point of view, “lid closed with one monitor” and “lid open with two screens” are two different setups. It doesn’t remember a layout for each.
What helps
- Stay plugged in and powered. Clamshell mode needs power and an external display; if either drops, macOS reshuffles.
- Use the same port and dock every time, so the setup looks the same to macOS after every wake.
- Remember a layout per setup. Deskback treats “lid closed + monitor” and “lid open + monitor” as two separate setups, remembers where every window was in each, and restores the right one automatically when it comes back — after sleep included.
Deskback is launching soon. Disclosure: we make it.
Get early access — $9 launch price
FAQ
Why do my windows move when I open my MacBook lid in clamshell mode?
Opening the lid turns on the built-in screen, which is a new display for macOS. It may move windows onto it or change the main display.
Can macOS remember a window layout for clamshell mode?
Not on its own. Deskback remembers one layout per display setup, so lid closed and lid open each keep their own.
Does Deskback need anything special for clamshell mode?
No. It recognizes the setup by the displays that are connected and restores automatically.
Related
Why your Mac moves windows after sleep · External monitor rearranges your windows · Stay alternatives · Deskback vs WinPin · Deskback vs Stay · Clamshell mode · Two monitors · Home and office