Corrected type of FakeInput rootX & rootY fields
authorAlex Plotnick <shrike@netaxs.com>
Thu, 13 Oct 2011 19:08:23 +0000 (15:08 -0400)
committerPeter Harris <pharris@opentext.com>
Thu, 13 Oct 2011 19:08:23 +0000 (15:08 -0400)
The FakeInput request defined by the XTEST extension has two fields, rootX and
rootY, that are used to indicate relative or absolute pointer coordinates for
fake motion events. These fields are of type INT16, not CARD16. (They must be
signed to allow for negative relative motions and to align with the root-x and
root-y fields of MotionNotify events.)

Signed-off-by: Peter Harris <pharris@opentext.com>
src/xtest.xml

index e481929..7f0b262 100644 (file)
@@ -88,8 +88,8 @@ authorization from the authors.
         <field type="CARD32" name="time" />
         <field type="WINDOW" name="root" />
         <pad bytes="8" />
-        <field type="CARD16" name="rootX" />
-        <field type="CARD16" name="rootY" />
+        <field type="INT16" name="rootX" />
+        <field type="INT16" name="rootY" />
         <pad bytes="7" />
         <!-- Version 2.2: XInput device -->
         <field type="CARD8"  name="deviceid" />