Cmd+Tab switches to the correct space, but doesn't bring app up to front 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?
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.