I am using OS X Lion and I have a very annoying problem with windows not showing up when I click on Dock icons.
It happens when I have some windows opened in one space but I am viewing another space at the moment.
For example, I have Mail and Skype on space #2 but I am on space #1. Note that all windows are not minimized.
I want to quickly switch to Mail. So I click on Mail icon in Dock, it switches the space to #2, menubar shows that active window is Mail but Mail window is actually below Skype window.
The strangest thing is that sometimes it works as expected showing the Mail on top. I can't see any logic here, it's absolutely unpredictable, thus annoying.
Does anyone experienced such problems? I wonder if it's a bug or correct behaviour. Is there any way to fix that?