[window management] If shell in front, any focused application change should not steal focus from shell. This fix exposed an animation bug which is also fixed. Fixes: https://bugs.launchpad.net/bugs/1178288.
Approved by PS Jenkins bot, Michael Zanetti.