summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-08-24 09:07:11 +1000
committerChase Douglas <chase.douglas@canonical.com>2011-08-23 17:57:08 -0700
commit1b0c016d1f7615e3670fa97fc8f24bc6b79e4f7b (patch)
treede372f510de6edb2b7ee745a4550b5d9927f1479
parent4adfb5ad6c064981e2c7eb57db4bdd81cc7029ea (diff)
XITouchClass' props needs a num_props
In XI2 requests, the length field isn't enough to determine the number of elements since it may vary in future versions. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com> Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
-rw-r--r--specs/XI2proto.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/specs/XI2proto.txt b/specs/XI2proto.txt
index 29ab8bc..3bb11ec 100644
--- a/specs/XI2proto.txt
+++ b/specs/XI2proto.txt
@@ -626,6 +626,7 @@ If major_version is less than 2, a BadValue error occurs.
sourceid: CARD16
mode: TOUCHMODE
num_touches: CARD16
+ num_props: CARD16
props: LISTofATOM }
TOUCHMODE* { DirectTouch, DependentTouch }
@@ -749,6 +750,8 @@ client. If no min and max information is available, both must be 0.
The maximum number of simultaneous touchpoints the device may send.
If num_touches is 0, the number of supported touches is unknown or
unlimited.
+ num_props:
+ The number of elements in props.
props
A list of properties to denote extra information about the device.