Stop dock moving between monitors while moving mouse to the bottom of screen

We know why it is moving: Why does my dock keep moving back to my other monitor?

Now, how can we stop it? Some terminal command or even paid software?


Solution 1:

You cannot "just" stop it - unfortunately.

You have some options to keep it in the same place, but they have drawbacks:

A) Keep the dock on the left or right side of the desktop. That way it will stay in place.

or

B) In Preferences => Mission Control, uncheck "Displays have seperate spaces". Now the dock will stay in place, but you will loose the spaces functionality.

Solution 2:

sudo killall Dock

Worked for me like @Allan or @Scott Reed suggested above.