add ChangeDeviceCursor request
authorPeter Hutterer <peter@cs.unisa.edu.au>
Mon, 8 Jan 2007 02:03:41 +0000 (12:33 +1030)
committerPeter Hutterer <whot@hyena.localdomain>
Mon, 8 Jan 2007 02:03:41 +0000 (12:33 +1030)
Changelog
XI.h
XInput.h
XIproto.h

index 89ced93..5dcf225 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -1,7 +1,10 @@
 MPX changelog
 
+== 08.01.07 ==
+       add ChangeDeviceCursor request
+
 == 20.12.06 ==
-add QueryDevicePointer request + reply
-add WarpDevicePointer request
+       add QueryDevicePointer request + reply
+       add WarpDevicePointer request
 
 
diff --git a/XI.h b/XI.h
index 3b8b548..6573310 100644 (file)
--- a/XI.h
+++ b/XI.h
@@ -113,6 +113,7 @@ SOFTWARE.
 #define sz_xQueryDevicePointerReq               12 
 #define sz_xQueryDevicePointerReply             32
 #define sz_xWarpDevicePointerReq                28
+#define sz_xChangeDeviceCursorReq               16
 
 #define INAME                  "XInputExtension"
 
index c6d0ae8..e5239ff 100644 (file)
--- a/XInput.h
+++ b/XInput.h
@@ -1209,6 +1209,20 @@ extern Bool     XQueryDevicePointer(
     Bool*               /* shared */
 );
 
+extern Status   XDefineDeviceCursor(
+    Display*            /* display */,
+    XDevice*            /* device */,
+    Window              /* win */,
+    Cursor              /* cursor */
+);
+
+extern Status   XUndefineDeviceCursor(
+    Display*            /* display */,
+    XDevice*            /* device */,
+    Window              /* win */
+);
+
+
 _XFUNCPROTOEND
 
 #endif /* _XINPUT_H_ */
index 33d4708..541e9a2 100644 (file)
--- a/XIproto.h
+++ b/XIproto.h
@@ -158,6 +158,7 @@ struct tmask
 #define X_ChangeDeviceControl          35
 #define X_QueryDevicePointer            36
 #define X_WarpDevicePointer             37
+#define X_ChangeDeviceCursor            38
 
 /*********************************************************
  *
@@ -1473,6 +1474,23 @@ typedef struct {
     CARD16      pad1 B16;
 } xWarpDevicePointerReq;
 
+/**********************************************************
+ *
+ * ChangeDeviceCursor.
+ *
+ */
+
+typedef struct {
+    CARD8      reqType;        /* input extension major code   */
+    CARD8      ReqType;        /* always X_ChangeDeviceCursor  */
+    CARD16     length B16;
+    Window      win B32;
+    Cursor      cursor B32;
+    CARD8       deviceid;
+    CARD8       pad0;
+    CARD16      pad1;
+} xChangeDeviceCursorReq;
+
 
 /**********************************************************
  *