diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-05-15 16:54:01 +0930 |
---|---|---|
committer | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-05-15 16:54:01 +0930 |
commit | a68a1cd7cb990ba276fbc36a7591044d78b3d3c1 (patch) | |
tree | 8b4b69860be3a347a78f6fc687a7d7142883f4da /include | |
parent | c76d30253f1483ac8200ad5c032a818907e65030 (diff) |
Add XGenericEvent definition and handling for long events.
Diffstat (limited to 'include')
-rw-r--r-- | include/X11/Xlib.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/X11/Xlib.h b/include/X11/Xlib.h index a26789b..73cfacd 100644 --- a/include/X11/Xlib.h +++ b/include/X11/Xlib.h @@ -971,6 +971,22 @@ typedef struct { Window window; /* window on which event was requested in event mask */ } XAnyEvent; + +/*************************************************************** + * + * GenericEvent. This event is the standard event for all newer extensions. + */ + +typedef struct + { + int type; /* of event. Always GenericEvent */ + unsigned long serial; /* # of last request processed */ + Bool send_event; /* true if from SendEvent request */ + Display *display; /* Display the event was read from */ + int extension; /* major opcode of extension that caused the event */ + int evtype; /* actual event type. */ + } XGenericEvent; + /* * this union is defined so Xlib can always use the same sized * event structure internally, to avoid memory fragmentation. |