To copy an area between drawables of the same root and depth, use XCopyArea().
To copy a single bit plane of a given drawable, use XCopyPlane().