Bug 1021583 - update active app while switching apps