Xlib Programming Manual & Xlib Reference Manual, Vols I & II by Adrian Nye