Xlib Programming in C and Linux Tutorial #01 - Creating a Window HD
An example of using the Xlib to create a blank window using the XOpenDisplay(). XCreateSimpleWindow(), XSelectInput(), XMapWindow(), and XNextEvent() functions. Also, it shows how to process the events. The Xlib is an interface to the X Window System to communicate with the X server.