XIWarpPointer needs to take FP1616 for positions.
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 21 Aug 2009 04:24:23 +0000 (14:24 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 21 Aug 2009 04:24:35 +0000 (14:24 +1000)
This was already in the spec but the protocol itself hadn't cought up with
it.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
XI2proto.h

index 78770c5..2fd91eb 100644 (file)
@@ -372,16 +372,16 @@ typedef struct {
     uint16_t    length;                 /**< Length in 4 byte units */
     Window      src_win;
     Window      dst_win;
-    int16_t     src_x;
-    int16_t     src_y;
+    FP1616      src_x;
+    FP1616      src_y;
     uint16_t    src_width;
     uint16_t    src_height;
-    int16_t     dst_x;
-    int16_t     dst_y;
+    FP1616      dst_x;
+    FP1616      dst_y;
     uint16_t    deviceid;
     uint16_t    pad1;
 } xXIWarpPointerReq;
-#define sz_xXIWarpPointerReq                    28
+#define sz_xXIWarpPointerReq                    36
 
 /**
  * Change the given device's sprite to the given cursor.