Cmd-Tab suddenly stopped working, and my Dock is unresponsive, what do I do?

command ⌘+tab⇥ and my Exposé shortcuts have stopped working, and clicking/mousing over dock icons has no effect.

What's wrong? What can I do to get things back?


Solution 1:

Your Dock has become unresponsive. It's rare, but it does sometimes happen. To fix it you just need to kill the Dock app and it will automatically restart. To kill the Dock:

Go to Applications ➔ Utilities ➔ Terminal.app

Type killall Dock

If that doesn't work, type killall -9 Dock

The Dock will vanish for a few moments and then pop back up good as new. None of your apps should be affected.

Edit: sudo killall Dock would kill other users' docks, and isn't even more likely to work. Thanks derober for pointing that out. killall -9 Dock is the right command

Solution 2:

http://blog.peterhaza.no/cmd-tab-and-dock-not-working-in-os-x/

And so I fired up Activity Monitor and force killed Dock. Two seconds later my Dock popped up and ⌘ ⇥ worked again.

Solution 3:

Another option for reference purpose for those that do not want to use terminal and this works even if the dock is hanging:

Alt+Cmd+esc will open the Force Quit Applications window and you can kill finder from there. Also right-clicking on the dock area should popup a Force Quit option if the dock is unresponsive.

This is an alternative for those that can't find their way around in the terminal

Solution 4:

Just note that you will need to be an administrator of your mac if you want to kill the Dock and fix it.

sudo killall Dock will be necessary to do this as an admin.

Solution 5:

Glad to hear you managed to get the Dock back... often the cause of problems like that is a dodgy third-party Dashboard Widget (DashboardClient runs as a child process of the Dock). Worth bearing in mind if the problem recurs...

I find Dashboard to be a more or less useless resource hog anyway... there's an article here about how to disable it.