diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-03-06 11:55:18 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-03-11 14:38:15 +1000 |
commit | f00f4dccba7f109dd6ec00be34543766f38264e9 (patch) | |
tree | 3828eaed110e71acb2db9da3722def2302e47dd3 /include | |
parent | 13445f170c80f9e2c48e78aa1ec14e956b75c297 (diff) |
Add Generic XIEvent struct.
Diffstat (limited to 'include')
-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. |