Delay the creation of the X atoms until we really need them, to allow getting more of them in one call. Use XGetAtomNames to retrieve all the selection atoms at once.