Listing 7

typedef struct
   {
   int         type;   /* Expose */
   unsigned long   serial;
   Bool            send_event;
   Display     *display;
   Window      window;
   int         x, y;       /* location of exposed area */
   int         width, height;  /* size of exposed area */
   int         count;
   } XExposeEvent;