E
Event Reference
This appendix describes each event structure in detail and briefly shows how each event type is used. It covers the most common uses of each event type, the information contained in each event structure, how the event is selected, and the side effects of the event, if any. Each event is described on a separate reference page.
Table E-1 lists each event mask, its associated event types, and the associated structure definition. See Volume One, Chapter 8, Events for more information on events.
Table E-1. Event Masks, Event Types, and Event Structures


Meaning of Common Structure Elements
Example E-1 shows the XEvent union and a simple event structure that is one member of the union. Several of the members of this structure are present in nearly every event structure. They are described here before we go into the event-specific members (see also Volume One, Section 8.2.2).
Example E-1. XEvent union and XAnyEvent structure
typedef union _XEvent { int type; /* must not be changed; first member */ XAnyEvent xany; XButtonEvent xbutton; XCirculateEvent xcirculate; XCirculateRequestEvent xcirculaterequest; XClientMessageEvent xclient; XColormapEvent xcolormap; XConfigureEvent xconfigure; XConfigureRequestEvent xconfigurerequest; XCreateWindowEvent xcreatewindow; XDestroyWindowEvent ...Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access