Dim view only if it is on top of the group.

This prevents flickering when switching views of the same group.
Merge pull request #3 from schlamar/dim-on-top

Dim view only if it is on top of the group.