WPopupMenu improvements: #1739 and general isExposed() trouble