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
- The monitor is still connected. Switching a monitor's input to another computer does not unplug it. To the Mac, that screen is there and in use, so windows can open on it like on any other.
- The app chooses where a new window goes. macOS does not place an app on the monitor you are looking at or where the pointer is. Each app decides, and many reopen where they last were.
- Reopened windows come back too. Apple's Desktop & Dock settings have "Close windows when quitting an application". Apple says that with it on, windows don't reopen automatically the next time you open the app. With it off, they do.
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":
- Open the app so its icon is in the Dock.
- Control-click the icon and choose Options.
- 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
- Check "Displays have separate Spaces". It is in System Settings → Desktop & Dock → Mission Control. Apple describes it as setting up separate spaces for each display. With it on, each monitor has its own desktops, so assigning an app to a desktop also ties it to that monitor.
- Check the switch-to-Space setting. By default, when you switch to an app, macOS jumps to a space that has open windows for it, which can pull you to the other monitor. Apple's option is "When switching to an application, switch to a Space with open windows for the application", in the same Mission Control section.
- Close windows when quitting. If an app keeps reopening windows on the wrong screen, turning on "Close windows when quitting an application" in Desktop & Dock stops them from coming back on their own.
- Move the window once, then quit the app. Many apps remember the position of their last window. Drag it to the right monitor before you quit and it often opens there next time.
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.