summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2007-01-08 12:33:41 +1030
committerPeter Hutterer <whot@hyena.localdomain>2007-01-08 12:33:41 +1030
commit3b84ea85ace4dc9fe1caf7d7c45c0c51ee35b4b2 (patch)
treeb67f23517820b8b2109f2c300293594aefd6166b
parentcc055ae804f4dfd8b09b8993673b4670e5cf61ce (diff)
add ChangeDeviceCursor request
-rw-r--r--Changelog7
-rw-r--r--XI.h1
-rw-r--r--XInput.h14
-rw-r--r--XIproto.h18
4 files changed, 38 insertions, 2 deletions
diff --git a/Changelog b/Changelog
index 89ced93..5dcf225 100644
--- 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
--- 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"
diff --git a/XInput.h b/XInput.h
index c6d0ae8..e5239ff 100644
--- 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_ */
diff --git a/XIproto.h b/XIproto.h
index 33d4708..541e9a2 100644
--- 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;
+
/**********************************************************
*