diff options
Diffstat (limited to 'include/X11/extensions/XInput2.h')
-rw-r--r-- | include/X11/extensions/XInput2.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/X11/extensions/XInput2.h b/include/X11/extensions/XInput2.h index 24d6f4e..925c17e 100644 --- a/include/X11/extensions/XInput2.h +++ b/include/X11/extensions/XInput2.h @@ -116,6 +116,21 @@ typedef struct XIAnyClassInfo **classes; } XIDeviceInfo; +/** + * Generic XI2 event. All XI2 events have the same header. + * Note: this event is padded to be the same size as libX11's XEvent. + */ +typedef struct { + int type; /* GenericEvent */ + unsigned long serial; /* # of last request processed by server */ + Bool send_event; /* true if this came from a SendEvent request */ + Display *display; /* Display the event was read from */ + int extension; /* XI extension offset */ + int evtype; + Time time; + char pad[68]; /* force same size as XEvent */ +} XIEvent; + /* * Notifies the client that the device hierarchy has been changed. The client * is expected to re-query the server for the device hierarchy. |