Xlib usage examples

Xlib (also known as libX11) is an X11 client library. It contains functions for interacting with an X server. This page provides several code snippets implementing complete X11 programs.