summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@redhat.com>2008-10-31 17:53:39 +1030
committerPeter Hutterer <peter.hutterer@redhat.com>2008-10-31 19:05:00 +1030
commitf8064629496c6061bedb7a99b788fb9d3a170f11 (patch)
tree4ac1727023761f466a323f5a29a3634ae2becca2
parent90a86701e3b9feafa05f44649a8314f06285fab5 (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.
-rw-r--r--XIproto.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/XIproto.h b/XIproto.h
index 72684dc..7238fa6 100644
--- a/XIproto.h
+++ b/XIproto.h
@@ -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;