ttp://cvs.freedesktop.org/xorg/xc/doc/specs/

というか、XクライアントのプログラムがXプロトコルを理解している必要はない。
XlibやGtkなどのAPIを知ってればいいだけ。