summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2007-03-09 15:51:07 +1030
committerPeter Hutterer <peter@cs.unisa.edu.au>2007-03-09 15:51:07 +1030
commit9dd8dcfa7e084d94cf3b7429eae65c93416159e3 (patch)
treee7868a7bce266e7a5b5b42e1501d886530cfafdd
parentde6f3fcaffe204e8f7c811f8a1599e9ed0999f9c (diff)
add SetClientPointer request.
fix typos and wrong names for access function declarations.
-rw-r--r--XI.h1
-rw-r--r--XInput.h12
-rw-r--r--XIproto.h26
3 files changed, 34 insertions, 5 deletions
diff --git a/XI.h b/XI.h
index d0bfc92..ad50164 100644
--- a/XI.h
+++ b/XI.h
@@ -122,6 +122,7 @@ SOFTWARE.
#define sz_xChangeWindowAccessReq 12
#define sz_xQueryWindowAccessReq 8
#define sz_xQueryWindowAccessReply 32
+#define sz_xSetClientPointerReq 12
#define INAME "XInputExtension"
diff --git a/XInput.h b/XInput.h
index df47da2..46216f8 100644
--- a/XInput.h
+++ b/XInput.h
@@ -1317,13 +1317,15 @@ extern Bool XUngrabAccessControl(
Display* /* display */
);
-extern Bool XClearAccessControl(
+extern Bool XWindowClearAccess(
Display* /* display*/,
+ Window /* win */,
int /* what */
);
-extern Bool XChangeAcccessRule(
+extern Bool XChangeAccessRule(
Display* /* display */,
+ Window /* win */,
int /* rule */
);
@@ -1351,6 +1353,12 @@ extern Status XQueryWindowAccess(
int* /* ndeny */
);
+extern Status XSetClientPointer(
+ Display* /* dpy */,
+ Window /* win */,
+ char /* deviceid */
+);
+
_XFUNCPROTOEND
diff --git a/XIproto.h b/XIproto.h
index 418be4b..3753bea 100644
--- a/XIproto.h
+++ b/XIproto.h
@@ -167,6 +167,7 @@ struct tmask
#define X_GrabAccessControl 41
#define X_ChangeWindowAccess 42
#define X_QueryWindowAccess 43
+#define X_SetClientPointer 44
/*********************************************************
*
@@ -1596,20 +1597,20 @@ typedef struct {
/**********************************************************
*
- * QueryAccessToWindow.
+ * QueryWindowAccess
*
*/
typedef struct {
CARD8 reqType; /* input extension major code */
- CARD8 ReqType; /* always X_RegisterAccessControl */
+ CARD8 ReqType; /* always X_QueryWindowAccess */
CARD16 length B16;
Window win B32;
} xQueryWindowAccessReq;
typedef struct {
CARD8 repType; /* input extension major opcode */
- CARD8 RepType; /* Always X_ChangeAccessToWindow */
+ CARD8 RepType; /* Always X_QueryWindowAccess */
CARD16 sequenceNumber B16;
CARD32 length B32;
CARD8 defaultRule; /* default rule setting */
@@ -1623,6 +1624,25 @@ typedef struct {
CARD32 pad5 B32;
} xQueryWindowAccessReply;
+
+
+/**********************************************************
+ *
+ * SetClientPointer.
+ *
+ */
+
+typedef struct {
+ CARD8 reqType;
+ CARD8 ReqType; /* Always X_SetClientPointer */
+ CARD16 length B16;
+ Window win B32;
+ CARD8 deviceid;
+ CARD8 pad0;
+ CARD16 pad1 B16;
+} xSetClientPointerReq;
+
+
/**********************************************************
*
* Input extension events.