I am developing an x-server implementation, and I want to make it as similar to the current one as possible. I read through the documentation, but I couldn't find anything specific. In particular, I'm trying to find a numbering scheme for windows. It seems to me that this is implementation specific.
Either way, I found this concerning window ids:
The most significant 11 bits of the XID indicate the client, leaving 21 bits for each client, giving each client 2^21 (= 2,097,152) XIDs.
Is there any clear documentation on how windows should be numbered?