If I display a popup through PopupManager then change the
CurrentState of the application or change CurrentState before
removing the popup the application goes into a weird zone where the
application is disabled to user input but the popup cannot be seen.
Is this behavior intended? It seems like a bug to me.