Dock keeps moving to second monitor

I've got a 2-monitor setup and just noticed a really weird behavior: When you move a window half-way across to the second monitor, it's cut off. No idea why anyone would think that that's a good idea but I googled it and unchecked the "displays have separate spaces" setting to fix it (which apparently needs a restart to take effect).

I went afk for a bit and when I came back and "woke up" the mac, the dock was on the second screen all of a sudden. The problem with windows being cut off is still there though.

I noticed that I can get the dock back to the main monitor by hovering the mouse at the bottom but the **** thing keeps moving back to the second screen when my mouse is there, even when it's just a second, which makes resizing windows and just overall working incredibly annoying!


How do I lock the dock to the main monitor?

Mac mini, macOS 10.15

Posted on Apr 14, 2021 4:31 AM

Reply
Question marked as Top-ranking reply

Posted on Apr 14, 2021 8:35 AM

This is expected behavior.


When you have two monitors side by side, and the Dock is positioned at the bottom, it will appear on either display, when you move the cursor to the bottom of that display.


If you want the Dock to only appear on one display, you have two options:


a) Uncheck "Displays have separate Spaces"

or

b) Place the Dock on one side instead of the bottom


Personally I would not want to use option a), but since you also seem to like having a window span across more than one screen, this is the option that will give you both things.

Of course, this means you lose some other things - no more having the menu bar on both displays; fullscreen applications basically will leave the second screen black and unusable... not my cup of tea, but maybe it will work for you.


Note: a change to this setting will only take effect after restarting


Similar questions

15 replies
Question marked as Top-ranking reply

Apr 14, 2021 8:35 AM in response to Sim2019

This is expected behavior.


When you have two monitors side by side, and the Dock is positioned at the bottom, it will appear on either display, when you move the cursor to the bottom of that display.


If you want the Dock to only appear on one display, you have two options:


a) Uncheck "Displays have separate Spaces"

or

b) Place the Dock on one side instead of the bottom


Personally I would not want to use option a), but since you also seem to like having a window span across more than one screen, this is the option that will give you both things.

Of course, this means you lose some other things - no more having the menu bar on both displays; fullscreen applications basically will leave the second screen black and unusable... not my cup of tea, but maybe it will work for you.


Note: a change to this setting will only take effect after restarting


Apr 14, 2021 6:19 AM in response to Sim2019

The dock will attach itself to the monitor of the menubar, except when it is pushed to the side that is being extended, in which case it pushes itself to the edge of the extension.


Apple menu -> System Preferences -> Displays lets you in the arrangement lets you drag the menubar from one display to another as it is represented in the arrangement field. And the extension is manages by how the monitor representations there are aligned to each other.

Apr 19, 2021 6:43 AM in response to Sim2019

Currently it does not work the way you want.

Having menu bar on both displays requires “separate Spaces”, and that in fact means what it says. The downside is that a window can’t be in both at the same time.


Maybe there is a third part system modification that makes the Dock show on all displays. I honestly think that is a waste of screen real estate but I would not mind if there were a preference to turn that on.

That is something only Apple can implement so use feedback and make a request.


http://www.apple.com/feedback



Apr 15, 2021 6:30 AM in response to Sim2019

I am puzzled by your "I need all the screen I can get" claim! Ok, I understand you want that, then your options about the Dock do not match.


I would expect you'd want the Dock to be as much out of the way as possible. So:


Where is that? It should be obvious:


a) Keep the Dock hidden - so your document windows can use all the screen real estate and not keep bumping into the Dock.


b) With two screens, side by side, you screen area is more than THREE times as wide as it is tall. (With three, it would be more than 4 and a half, possibly five times as wide!)

Where is the Dock more out of the way? On the side, of course.


On a side note: I am continuously surprised with how much people love or hate the Dock. I can work for a whole day and never touch it or even see it (as you may have guessed, it is hidden all the time on my mac).





Apr 14, 2021 7:55 AM in response to a brody

The menu bar (with date, clock,...) is being displayed on both monitors - at least when there are open (or even minimized) apps on both monitors. Sorry, not sure what you mean.


I checked the "Displays" settings page and the small "dock" rectangle is displayed above the main monitor but when I move the mouse to the bottom of the second monitor, the dock still switches to it.

Apr 15, 2021 4:52 AM in response to Luis Sequeira1

The constant switching after keeping your cursor there for just a second is annoying and user-hostile because it breaks the workflow when you actually have to search for the dock. Either display it on the screen the user actually set for it (what's the point of the setting if it's being ignored?!) or display it on both screens - or at least don't make it switch unless you keep the mouse in that spot for something like 10 seconds, so accidental switches (like when you're resizing a window) don't happen!


a) Works in a way because the dock actually respects its "arrangement" setting and you can move windows half-way to one screen without it being cut off but at the same time it's really annoying that the menu bar is only on the main monitor and you have to move your mouse there, even when you're currently working on a second, third,... one. The menu bar should be where the windows/apps are!


b) isn't a good solution because I need all the screen width I can get.


fullscreen applications basically will leave the second screen black and unusable...

What do you mean?

Apr 15, 2021 6:32 AM in response to Sim2019


fullscreen applications basically will leave the second screen black and unusable...
What do you mean?


Have you tried putting an application in full screen when you have the menu bar only on the main screen (i.e. "separate Spaces" is OFF)?


Granted, it has been years since I did that, because I require "separate Spaces", and never turned it off (since Mavericks?) but that is what used to happen. Application using the main screen in full, secondary screen turned black. Did that change?

Apr 16, 2021 1:39 AM in response to Luis Sequeira1

No, I wrote:

...I need all the screen width I can get.

Having the dock at the bottom is fine, I need something to switch between/open apps after all, somewhere that's easy to reach, so either on the main screen or both on my main screen and on my second screen. I wish it would just span the whole screen (without becoming taller), so those unusable, empty spots on the side go away but it looks like Apple doesn't let you do that. Hiding the dock just so I can get a little bit of extra screen height (that I don't need) would leave me with the same problem: It not always being in the same spot, plus the mouse accidently showing it (which also temporarily changes window heights).


Apr 16, 2021 1:52 AM in response to Luis Sequeira1

No, the applications I use only run in "maximized" mode and for gaming (everything's full screen) I've got a proper PC. I just tested it with a youtube video in Firefox: The window on my second screen staid the way it was and I could move my mouse to it. Youtube "full screen" might be actually borderless (maximized) though. I don't think I've even got an app installed that can switch to actual full screen mode.

Apr 16, 2021 2:27 AM in response to Sim2019


"Having the dock at the bottom is fine, I need something to switch between/open apps after all, somewhere that's easy to reach, so either on the main screen or both on my main screen and on my second screen."


Why switch apps using the Dock?

Don't you know about Command-Tab?

No need to take your hands off the keyboard.

Simply pressing Command-Tab switches to most recent used application.

Or press command-tab, keep holding the command key and use the arrow keys to switch to another application.



Apr 16, 2021 5:42 AM in response to Luis Sequeira1

Cmd+Tab only lets you switch between apps but not between windows. If there are multiple e.g. browser windows, they only show up as that specific app (= a single icon) in Cmd+Tab. What's even worse: If I close the last window of an app, it still shows up in Cmd+Tab and there's still a dot underneath that app in the dock - but that's an overall macOS problem, I never understood why closing the last window won't close the app completely too (this is a desktop/notebook OS, not a tablet OS where keeping apps in cache actually helps!).


To switch between browser windows I have to either right-click the browser icon on the dock to see all of them (then left-click to open one in the list) or left-click on a window in the "minimized" section of the dock. I wish it would just show every window on the dock, no matter if minimized or not, so it's easier to switch between stuff but that's yet again a different problem.

Apr 16, 2021 6:15 AM in response to Sim2019

Command-` switches between windows of the same application.


There is also Mission Control.

You can summon Mission Control, for example, with control-up arrow, and have access to all windows in all applications.

You can also summon all windows from just one application with control-down arrow.


Single-window applications - like, for example, System Preferences - quit when their only window is closed.

That makes sense for those applications, because all there is to do with them is in that window.


Multiple-window application - like, say, Safari - don't. They can have 1,2,3... 10, 100 windows open... or zero.

That is how a mac has always behaved.

Many people that are accustomed to Windows think that clicking the red button closes the application.

That is not how it works in the mac. To quit, press command-Q or choose Quit.

(And, incidentally, only rarely do I click the red button, anyway; command-W closes tabs or windows; command-option-W closes all windows; but still does not quit an application)


macOS is different from Windows.


[In fairness to Windows: the command-tab is one of the few things that started in Windows first - there, it's alt-tab, but it has the same functionality]


Apr 19, 2021 5:22 AM in response to Luis Sequeira1

And another keyboard shortcut... It feels like Apple is adding shortcuts for everything because their non-shortcut way of doing stuff is just bad in maintaining the workflow. No, I don't want to tap a touchpad with 3 fingers of my left hand while doing a raindance and tibetan throat singing to copy a file! I just want all the windows of a single app to be in the same spot and single-click on the one I want, without having to remember a hundred different shortcuts or going through menus first.


Anyway, back to topic:

How do I lock the dock to the main monitor, while still 1. being able to pass windows form one screen to another without them being cut off and 2. having a menu bar on both screens? I would be fine with one dock on each screen, I just don't want the thing to switch when I quickly move my mouse over a specific spot.


This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Dock keeps moving to second monitor

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.