Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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
1  
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
1  
Nope, this UX issue is still present on Mavericks. –  dghubble Mar 29 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 at 21:50

4 Answers 4

up vote 4 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

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

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

Your Answer

 
discard

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.