Clamshell mode: using a MacBook closed with one monitor
What a MacBook needs to run with the lid closed on an external display, why windows jump when you close or open it, and how to keep your layout in place.
Clamshell mode runs a MacBook with its lid closed and an external display as the only screen. It needs power connected, a display, and a keyboard and pointer (wired or Bluetooth). Close the lid and the external display carries on alone.
Setting it up
- Connect the power adapter and the external display.
- Connect or pair a keyboard and a mouse or trackpad.
- Close the lid. The display may go dark for a moment, then come back as the only screen.
Recent Apple silicon MacBooks can also stay awake on battery with the lid closed when an external display is connected. If yours sleeps, plug in power.
Why windows jump around
Closing or opening the lid adds or removes a display. macOS moves every window that was on the display that went away, and it does not always move them back. That is why windows end up stacked on one screen after you open the lid again.
- Close the lid before you unplug the display, and open it after plugging in, so fewer windows have to move.
- In System Settings, Desktop & Dock, Displays have separate Spaces decides whether each screen keeps its own desktops.
- See windows moving after unplugging a monitor for more fixes.
Keeping your layout
ClutterFreeMac keeps a strip of windows on each display. When a display comes or goes, it checks the strips against what is open, and nothing is left parked off screen. On one big external display in clamshell mode, the strip is at its best: more columns fit, and the rest stay one swipe away.
Questions
What do I need for clamshell mode on a MacBook?
An external display, power connected, and an external keyboard and mouse or trackpad. Then close the lid.
Why do my windows move when I close my MacBook lid?
Closing the lid removes the built in display, so macOS moves its windows onto the external one. Opening it adds the display back, but windows are not always returned.
Read next
- Guide
Why your Mac windows jump around after unplugging a monitor
Unplug an external display and every window crowds onto the laptop. Plug it back in and they stay there. Why it happens and how to get your layout back fast.
Read › - Guide
MacBook Air and an external monitor: a window layout that works
Two screens of different sizes, and windows that move when you unplug. How to set up a MacBook Air with a monitor so windows stay where you want them.
Read › - Guide
How to move a window to another monitor on a Mac
Dragging across screens works but is clumsy. The Window menu option, the keyboard way, and how to send a window to the next display with one shortcut.
Read ›