Mac apps open on the wrong monitor

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

You share a monitor between your Mac and another computer, and every time you open Firefox on the Mac it appears on the screen that is showing the other machine. Or an app keeps opening on the monitor across the room instead of the one in front of you. You switch inputs or drag it over, and it happens again tomorrow. This page explains why macOS puts the window there, how to pin an app to one display with a setting Apple documents, and what does not help, including my own app.

Why it opens there

Pin the app to one display

Apple's guide "Work in multiple spaces on Mac" describes a setting for this, under "Assign apps to spaces":

  1. Open the app so its icon is in the Dock.
  2. Control-click the icon and choose Options.
  3. Under Assign To, choose Desktop on Display followed by the number of the monitor you want. Apple's guide says the app then opens in the current space on that display. The option appears only when more than one display is available.

The other choices: This Desktop opens the app only in the current space, All Desktops opens it in every space, and None, the default, opens it in whichever space you are using. Assigning works per app, so repeat it for each app that keeps landing in the wrong place.

Other settings that help

If the monitor is shared with another computer

None of the settings above tells macOS that you cannot see a screen. If a monitor spends most of the day on another computer, the reliable fix is physical: unplug the Mac's cable from that monitor while the other machine uses it.

The free command-line tool displayplacer can disable a screen with displayplacer "id:<screenId> enabled:false", after you find its ID with displayplacer list. Its README warns that you may need to unplug and replug the monitor to bring it back, though on some setups enabled:true works. More on the tool in fix swapped monitors with displayplacer.

Another option, suggested in the forum thread that prompted this page: use both monitors for the Mac only, and reach the other computer through a remote desktop window in full screen on one of them. Then nothing is hidden from the Mac.

How Many Displays handles it

It does not help with this, and I would rather say so. Many Displays puts windows back after the Mac wakes, unlocks or the monitors reconnect. It does not decide where an app opens a new window: new windows are left alone and only remembered from then on. A monitor switched to another input stays connected, so to the Mac nothing happened and there is nothing to restore.

Where it does help is the related problem of windows that were on the right monitor and moved after sleep or a lock. That is covered in every fix for windows moving after sleep.

Download the free trial How it works

Questions

Why does an app open on a monitor I am not using?

As long as the cable is connected, macOS treats the monitor as in use, even if you switched its input to another computer. Where a new window appears is then up to the app, and nothing tells macOS that you cannot see that screen.

How do I make an app always open on one display?

Control-click the app's icon in the Dock, choose Options, and under Assign To choose Desktop on Display followed by the display's number. Apple's guide says the app then opens in the current space on that display.

Can I make macOS ignore a monitor I share with another computer?

Not with a setting. The free command-line tool displayplacer can disable a screen, but its README warns you may need to unplug and replug it to bring it back. Unplugging the Mac's cable from that monitor is the reliable way.

Does a window restore app fix this?

No. A restore app puts windows back after sleep or a reconnect. It does not decide where an app opens a new window, and a monitor switched to another input stays connected, so there is nothing to restore.