add a 'window' mode to the popup view

this mode allows popup windows which do not stay on top of all the
windows on the desktop, they only stay on top of their parent.