Update 2: This problem is due to 3rd party software -- details at the bottom of this post
I use dock "hiding" which is supposed to show the Mac OS dock only when the mouse is brought to that edge of the screen, and I've been having trouble with the dock sometimes getting "stuck" open rather than automatically hiding.
But until now, I've never been able to figure out why it gets stuck. I've tried solutions on some sites (such as this) which recommend using the Terminal
killall Dock command or other solutions, but none of it has worked for me.
As the following screen capture shows, the problem I'm experiencing happens when the mouse is dragged to the edge of the screen and then slid along that edge. In my video the Dock is along the left edge, but similar things happen when it's placed at the bottom or on the right side of the screen.
While recording this video I used software which shows mouse left clicks as red circles and keystrokes in a gray box at the upper left corner.
Although I move the mouse pretty quickly, before each "stuck" event I have inserted a red arrow to show how the mouse is about to move to cause the problem.
It was hard for me to figure out how to reproduce this, so don't be surprised if you find it difficult to reproduce. As seen in the .gif, I have several failed attempts even with all my practice.
To get it unstuck requires moving the mouse back to the edge where the dock is, but I've also found that clicking twice on the control center menu bar item will get it unstuck. Using cmd-opt-D to hide/unhide does not help it get unstuck, and as you can see in the .gif no amount of clicking away from the dock helps.
Is there a solution to this problem?
Update: After @Tetsujin commented on an inability to get the Dock to pop up "while the cursor is still moving" I did some more tests. In the .gif below you can see that I am able to reproduce the problem even with a very slow moving cursor.
I'm using MacOS 13.2.1 on a MacBook Air M1, 2020
Update 2: This problem is due to 3rd party software. Specifically, a feature called "Hide Menu Icons" within the "Parallels Toolbox" of the Parallels emulation software for Mac OS. I've posted a bug report on their site, but here is a screen capture demonstrating that the Dock gets stuck (1) when the "Hide Menu Icons" is turned on and (2) the Dock does not get stuck when the "Hide Menu Icons" is turned off and (3) the Dock gets stuck again when the "Hide Menu Icons" is turned back on. Thanks to @benwiggy