Xcb is the "newer" way of writing X11 programs. It replaces Xlib, a mess of an API old enough to have adult offspring. Xcb shares many similarities with Xlib, but is far more consistent in the naming of functions, types, and constants.