You don't need anything extra. Just read XLib documentation.