[Xcb-commit] src

Peter Harris peterh at kemper.freedesktop.org
Thu Oct 13 12:09:32 PDT 2011


 src/xtest.xml |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit f3ae971edce37ad96ef0b8a6059c1f853e88fcf3
Author: Alex Plotnick <shrike at netaxs.com>
Date:   Thu Oct 13 15:08:23 2011 -0400

    Corrected type of FakeInput rootX & rootY fields
    
    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 at opentext.com>

diff --git a/src/xtest.xml b/src/xtest.xml
index e481929..7f0b262 100644
--- a/src/xtest.xml
+++ b/src/xtest.xml
@@ -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" />


More information about the xcb-commit mailing list