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

44

16

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?

Peter Burns

Posted 2009-07-18T03:59:13.630

Reputation: 1 501

Answers

81

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

Peter Burns

Posted 2009-07-18T03:59:13.630

Reputation: 1 501

@PeterBurns It's perfectly acceptable to select your own answer as the correct one. – Aaron Mahan – 2015-09-20T05:36:14.333

2sudo killall Dock would kill /other/ users' docks, not at all what you intended. If Dock refuses to die, try killall -9 Dock. – derobert – 2009-07-18T05:38:29.443

2Killing others' docks is kinda funny, but you're right, it's not at all what I intended. Good eye. – Peter Burns – 2009-07-18T06:09:48.447

10

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.

TheTXI

Posted 2009-07-18T03:59:13.630

Reputation: 3 551

7

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

BinaryMisfit

Posted 2009-07-18T03:59:13.630

Reputation: 19 955

Not simply an alternative, IMHO this is far better than the selected answer. It requires fewer steps and is much clearer. – danorton – 2014-06-20T15:18:01.423

3

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.

Niall

Posted 2009-07-18T03:59:13.630

Reputation: 39

3killall Dock works just fine for me. – Peter Burns – 2012-12-12T03:03:38.893

1

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.

avstrallen

Posted 2009-07-18T03:59:13.630

Reputation: 520

0

On your Mac:

Navigate to System Preferences Go to Mission Control Uncheck "When switching to an application, switch to a Space with open windows for the application"

Shiju

Posted 2009-07-18T03:59:13.630

Reputation: 1

0

Had the exact same problem, ended up finding solution on Apple support communities https://discussions.apple.com/thread/3384782?start=30&tstart=0

Summarized below, thanks to watski

I deleted ~/Library/Application Support/Dock/*.db and killed the Dock in Activity Viewer. Now it seems to behave. For the record I tried deleting the dock .plist, setting VMWare preferences and so on but in vein. Rebooting did not help either.

Tony

Posted 2009-07-18T03:59:13.630

Reputation: 101

-3

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

The Dock is launched as part of Finder, so you can just relaunch Finder from the "Force Quit" menu, which is accessible via with Cmd + Alt + Escape

dbr

Posted 2009-07-18T03:59:13.630

Reputation: 4 987

For reference, Dock.app is it's own application that Exposé and the Command-Tab switcher both are features of. – Chealion – 2010-03-18T17:33:27.547

This was the first thing I tried, and it didn't work. :/ – Peter Burns – 2009-07-18T06:14:33.570