11.1 Selecting Events

There are two ways to select the events you want reported to your client application. One way is to set the event_mask member of the XSetWindowAttributes structure when you call XCreateWindow() and XChangeWindowAttributes(). Another way is to use XSelectInput().
Next: Handling the Output Buffer

Christophe Tronche, [email protected]