Bug 844990 - Remove race condition cause by bug 842627 on setting

displayedApp in Window Manager