Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a problem (bug?) with application switching on Lion.

I use two Spaces. Say one has Postbox open, and another has Firefox and Vim.

Vim is in the foreground, and Firefox's window is behind it.

When I Cmd+Tab from Postbox to Firefox, the space is switched correctly, but Firefox remains in the background.

If I Cmd+Tab to Firefox again, or select it in the Dock, the window comes up front normally.

The bug isn't limited to Firefox only, seen it with many apps.

What am I doing wrong?

share|improve this question
Timely. I just noticed this happening on my 10.7.3 machine today. Can't say I've ever noticed it before. It's intermittent. Sometimes Cmd-Tab will bring up the app, other times it's still not in the foreground after switching to the space. – Ian C. Feb 22 '12 at 21:32
Fullscreen applications don't seem to be affected by this, so my work around is to fullscreen as many of the applications as possible. I prefer the fullscreen version of applications (in most cases) so it doesn't bother me, but can appreciate that this work around wont be suitable for everyone. Using this work around I can switch between applications with command + tab or I can use the 4 finger swipe gesture on the trackpad without problem. – nacious Oct 3 '12 at 23:31
It does not happen on OSX 10.9 Mavericks, so probably they've fixed it. – kenorb Oct 24 '13 at 20:23
Nope, this UX issue is still present on Mavericks. – dghubble Mar 29 '14 at 23:55
Same thing happens to me when switching between Sublime Text and Chrome. Chrome menubar comes up but window is still hidden. – James May 2 '14 at 21:50
up vote 6 down vote accepted

To the original poster, you weren't doing anything wrong.

Whether it was intended as a feature or not, it is clearly a usability issue, aka a bug. The problem is that often the affected app window was left stacked on top of all other windows, not behind them. Upon switching back and forth with Spaces Mission Control, the app often gets stuck under other open windows.

The finger-twisting CMD-TAB-OPTION-release fails more often than not: it either doesn't do anything differently or it is impossible to accomplish due to autorepeating keys, making it a worthless gesture.

It is definitely a bug, not a feature. Keep flipping back and forth with CMD-TAB, and the window will pop back to the top, then drop down again, erratically.

Oh, it doesn't appear to affect Spaces, so it seems to be a regression.

share|improve this answer
Note: since the application is selected, you can also hit CMD-Backtick to find the window pane that should have been in the foreground. It is at least a less finger-fumbling gesture. – jerseyboy Mar 16 '12 at 14:09

It's a feature not a bug :-)

Start tabbing with Cmd-Tab until you get to the application you want to switch to, then press and hold Option before releasing Cmd-Tab.

share|improve this answer
Are you sure? If I put Skype in front of Sparrow on space 2, switch to Chrome in Space 1 and the Cmd-Tab to Sparrow sometimes it comes up in the foreground, sometimes it stays behind Skype. I just figured it was Skype. I blame most of the world's problems on Skype though... – Ian C. Feb 22 '12 at 21:35
Atleast in Yosemite, using option seems to be required only if the app was minimized before. And so, it might be a more efficient to just hide (command + H) windows and not minimize them so that they can be navigated to through command + tab – Raghu Dodda Mar 1 '15 at 21:23
So you are saying I press Cmd-Tab all way to see a minimized window? – mahe madhi Aug 21 '15 at 7:27

KeyRemap4Macbook allows remapping command+tab to command+tab+option, if you want this to be the default behavior. It also has some very cool/powerful customizations like remapping keyboard shortcuts only for specific applications - e.g. remap command+tab in Firefox to control+tab to switch between browser tabs.

share|improve this answer
the app is called Karabiner and the option to tick is under Change Key ->Change Command_L Key(Left Command) ->Command_L to Option_L (Pass-Through Command+Tab) – M.C. Feb 2 at 18:10
but program messes up copy, paste, cut,.. shortcuts – M.C. Feb 2 at 20:30

I agree with jerseyboy, it is pretty much a bug. So, under Lion 10.7.3, in mail, I switch to safari, which is in a different space. Then I switch back to mail, and the space duly switches to where I was. However, the window that was previously on top is now hidden behind terminal and a few other windows I have open on that space. This is an annoying interference in rapid switching between applications.

One slightly less awkward approach to get the application back to the front again is to cmd-tab to the application in question, release (which switches to the right space), and then hit cmd-tab cmd-shift-tab (faking a switch to another application but actually going back to the same one). This sequence is really awkward being 3 combos when one ought to be enough. Come on Apple, at least let us select this behavior in system prefs or a mysterious plist command line thingy.

share|improve this answer

In 10.7.5 the bug is still there! And yes, it's a bug because it isn't consistent. E.g., Ctl-tab-opt to mail, up pops finder. Ctl-tab-opt to Safari, nothing happens.

share|improve this answer
This does not really answer the question. If you have a different question, you can ask it by clicking Ask Question. You can also add a bounty to draw more attention to this question once you have enough reputation. – Tetsujin Jan 19 '15 at 17:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.