How do you prevent the dock from switching monitors in macOS Monterey?

In Mavericks, Apple introduced a "feature" where if you hover at the bottom of any screen the dock pops up on that screen.

This is disrupting my workflow as I am constantly having the dock pop up when I don't want it to and then I have to go to another window and hover at the bottom for several seconds to get it to go away so I can click on what I was trying to in the first place.

I don't want the dock to move; I want it to stay on the bottom of my right-most monitor like it always has. How can I adjust this in macOS Catalina (10.15), Big Sur (11.0), or Monterey (12.0)?


This is very easy.

Go to System Preferences > Mission Control, then deselect the option "Displays have separate Spaces"


An alternative, as suggested by MacLife, is to put the Dock on the right or left and then it won't move. But hopefully in a future iteration the Dock can be kept on the bottom and only on one monitor.