Macos – Clicking on Dock icon does not bring window on top (OS X Lion)

macmacososx lion

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?

Best Answer

This same problem happened to me. What I did was:

  1. Go in to the launchpad, there should be a folder called "Other"

  2. Click on Terminal, a window will pop up and will say

    Last login: Fri Apr 28 12:35:22 on ttys000
    Computer-Name:~ username$ 
    
  3. Type in

    Killall Dock
    

Now that should fix it.

Related Question