There are many types of Events in Xlib. A special XEvent structure is defined to take care of this. (See Xlib Handouts for full details)
XEvents exist for all kinds of: mouse button presses, mouse motions, key presses and also events concerned with the window management.
Most of the mouse/keyboard events are fairly self explanatory and we have already studied them a little.
Let's look at some window events further:
NOTE: There is no guarantee that what has previously been drawn to the window will become immediately visible. Infact it is totally up to the programmer to make sure that this happens by picking up an XExpose event (See sections of Pixmaps and DrawingAreas).