Programming with X

There are several different ways of programming with X. Note that (like all Unix programs/commands) the X applications like xterm, xclock, xcalc and so on, are all just programs written using some of these techniques, just like you may write programs... You do not have to know a thing about the display server, the window manager, or the X Protocol. Instead, what you need is one or other of the various X libraries.