Deskback

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:

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

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