Adding a separate function for allocating server-client's XIDs. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>