fix WPopupMenu not closing on right mouse background click