xprograms: add mac_rightclick function