Fixing the way that application bars work so that popups can use them as well.