summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChase Douglas <chase.douglas@canonical.com>2011-09-13 15:47:15 -0500
committerChase Douglas <chase.douglas@canonical.com>2011-09-13 15:47:15 -0500
commit3c400af4f98740debd7916ad711cf91124a0f994 (patch)
tree77f3141c6cc821b2d0883175a2d554a8347aebb1
parentdd9e4bc5f5f2e0eb87b08199ce417849070249ab (diff)
Add event windows to ownership events
Also, match device event structure to make things easy. Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
-rw-r--r--XI2proto.h6
-rw-r--r--specs/XI2proto.txt14
2 files changed, 16 insertions, 4 deletions
diff --git a/XI2proto.h b/XI2proto.h
index 023acc8..8117767 100644
--- a/XI2proto.h
+++ b/XI2proto.h
@@ -909,9 +909,13 @@ typedef struct
uint16_t evtype; /**< XI_TouchOwnership */
uint16_t deviceid; /**< Device that has changed */
Time time;
+ uint32_t touchid;
+ Window root;
+ Window event;
+ Window child;
+/* └──────── 32 byte boundary ────────┘ */
uint16_t sourceid; /**< Source of the new classes */
uint16_t pad0;
- uint32_t touchid;
uint32_t flags;
uint32_t pad1;
uint32_t pad2;
diff --git a/specs/XI2proto.txt b/specs/XI2proto.txt
index 6a5345c..3eea2f5 100644
--- a/specs/XI2proto.txt
+++ b/specs/XI2proto.txt
@@ -2328,8 +2328,11 @@ Events introduced in version 2.2
┌───
TouchOwnershipEvent (since XI 2.2):
EVENTHEADER
- sourceid: DEVICEID
touchid: CARD32
+ root: Window
+ event: Window
+ child: Window
+ sourceid: DEVICEID
flags: SETofTOUCHOWNERSHIPFLAGS
└───
@@ -2338,10 +2341,15 @@ Events introduced in version 2.2
A TouchOwnershipEvent indicates that ownership has changed, and the client
is now the owner of the touch sequence specified by touchid.
- sourceid
- The source device that originally generated the event.
touchid
The identifier of the touch sequence.
+ root
+ event
+ child
+ The root window, event window, and child window, respectively. See the
+ core protocol specification for more detail.
+ sourceid
+ The source device that originally generated the event.
flags
A bitmask of flags for this event.