compositor: implement popup handling