The mapping from XInput button mask to the standard X event button mask is not 1...