diff options
author | Peter Hutterer <peter.hutterer@redhat.com> | 2008-10-31 17:53:39 +1030 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@redhat.com> | 2008-10-31 19:05:00 +1030 |
commit | f8064629496c6061bedb7a99b788fb9d3a170f11 (patch) | |
tree | 4ac1727023761f466a323f5a29a3634ae2becca2 /XIproto.h | |
parent | 90a86701e3b9feafa05f44649a8314f06285fab5 (diff) |
PropertyNotify, move deviceid back to last byte.
This way, it can be type-cast to deviceKeyButtonPointer to extract the
deviceid, which is (aside from time) the only thing it has in common with
those anyway.
Diffstat (limited to 'XIproto.h')
-rw-r--r-- | XIproto.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -2017,18 +2017,18 @@ typedef deviceEnterNotify deviceLeaveNotify; typedef struct { - BYTE type; /* always GenericEvent */ + BYTE type; BYTE state; /* NewValue or Deleted */ CARD16 sequenceNumber B16; CARD32 time B32; Atom atom B32; /* affected property */ - CARD8 deviceid; /* id of device */ - CARD8 pad0; - CARD16 pad1 B16; + CARD32 pad0 B32; + CARD32 pad1 B32; CARD32 pad2 B32; CARD32 pad3 B32; - CARD32 pad4 B32; - CARD32 pad5 B32; + CARD16 pad5 B16; + CARD8 pad4; + CARD8 deviceid; /* id of device */ } devicePropertyNotify; |