Sub topic 9
Spaces with multiple displays
This chapter assumes you can already open Mission Control, create and switch Spaces, and find System Settings > Desktop & Dock. Here you will see how an external display changes those behaviors, and how to control it.
Each display gets its own Spaces
By default, macOS gives every connected display its own set of Spaces. A MacBook screen and an external monitor each have a Desktop 1, Desktop 2, and so on, and you switch them independently. The setting behind this is Displays have separate Spaces, found under System Settings > Desktop & Dock > Mission Control. It is on by default.
With it on:
- Each display shows its own menu bar.
- Mission Control draws a separate row of Space thumbnails on each display.
- A full-screen app takes over only the display it is on. The other display stays usable.
- Control-Left Arrow and Control-Right Arrow change the Space on the display that has the pointer or focus. The other display does not move.
What happens when you turn the setting off
With Displays have separate Spaces off, all displays act as one wide desktop. A Space spans every screen, and switching Spaces changes all displays at once. A full-screen app covers only one display. The other display shows a blank, dimmed background and cannot hold windows. Windows can also straddle two displays, which separate Spaces does not allow.
macOS applies this change only after you log out and log back in.
Moving windows between displays
Drag a window across the display boundary to move it. With separate Spaces on, the window lands in whichever Space is currently showing on the destination display.
To send a window to a specific Space on another display:
- Open Mission Control.
- Drag the window thumbnail onto a Space thumbnail in the other display's row.
You can also assign an app to a Space on a particular display. Control-click its Dock icon, choose Options, then Assign To, and pick a desktop. The list names each display's Spaces, such as Desktop 2 on Display 2.
Disconnecting and reconnecting a display
When you unplug a display, macOS moves its windows onto the remaining display's Spaces. When you plug it back in, macOS usually restores the earlier arrangement, but not always. If windows stay on the wrong display, open Mission Control and drag them back.
Checking the setting from the terminal
The setting is stored in the com.apple.spaces preferences domain under the key spans-displays. A value of 1 means Spaces span displays, which is the setting turned off. A value of 0, or no key at all, means separate Spaces.
defaults read com.apple.spaces spans-displaysIf the command prints The domain/default pair ... does not exist, you are on the default and have never changed it. To change the setting, use System Settings rather than defaults write. The log-out step is easy to miss when you edit the value by hand.
Common problems
| Symptom | Likely cause | Fix |
|---|---|---|
| Second display goes blank when an app goes full-screen | Separate Spaces is off | Turn it on, then log out and back in |
| A window cannot stretch across two displays | Separate Spaces is on | Turn it off, then log out and back in |
| Control-Arrow switches the wrong display | The pointer is on the other display | Move the pointer first |
| Windows are on the wrong display after reconnecting | macOS did not restore the layout | Drag them back in Mission Control |
Exercise
You turn off "Displays have separate Spaces" and open a video player in full-screen mode on your external monitor. What do you see on your laptop screen, and what must you do for a setting change like this to take effect?
Show answer
The laptop screen shows a blank, dimmed background because a full-screen app covers only one display when Spaces span all displays. The setting takes effect only after you log out and log back in.