diff options
author | Peter Hutterer <peter@cs.unisa.edu.au> | 2007-02-22 20:03:36 +1030 |
---|---|---|
committer | Peter Hutterer <whot@hyena.localdomain> | 2007-02-22 20:03:36 +1030 |
commit | de6f3fcaffe204e8f7c811f8a1599e9ed0999f9c (patch) | |
tree | 20fe900bf46515e17f2f648b11fcfc9ca21c2b0b /XI.h | |
parent | bb5c144c53fcb03c56b247b439915d72ad284856 (diff) |
add access control requests.
fix wrong field lengths for RegisterPairing request and reply.
Diffstat (limited to 'XI.h')
-rw-r--r-- | XI.h | 21 |
1 files changed, 19 insertions, 2 deletions
@@ -114,9 +114,14 @@ SOFTWARE. #define sz_xQueryDevicePointerReply 32 #define sz_xWarpDevicePointerReq 28 #define sz_xChangeDeviceCursorReq 16 -#define sz_xChangePointerKeyboardPairingReq 8 -#define sz_xRegisterPairingClientReq 8 +#define sz_xChangePointerKeyboardPairingReq 8 +#define sz_xRegisterPairingClientReq 8 #define sz_xRegisterPairingClientReply 32 +#define sz_xGrabAccessControlReq 8 +#define sz_xGrabAccessControlReply 32 +#define sz_xChangeWindowAccessReq 12 +#define sz_xQueryWindowAccessReq 8 +#define sz_xQueryWindowAccessReply 32 #define INAME "XInputExtension" @@ -264,6 +269,18 @@ SOFTWARE. #define _deviceEnter 0 #define _deviceLeave 1 +/* Flags for ChangeWindowAccess defaultRule. Pick one. */ +#define WindowAccessNoRule 0 +#define WindowAccessKeepRule 1 +#define WindowAccessDenyAll 2 + +/* Flags for ChangeWindowAccess. */ +#define WindowAccessClearNone 0 +#define WindowAccessClearPerm (1) +#define WindowAccessClearDeny (1 << 1) +#define WindowAccessClearRule (1 << 2) +#define WindowAccessClearAll \ + WindowAccessClearPerm | WindowAccessClearDeny | WindowAccessClearRule #define XI_BadDevice 0 #define XI_BadEvent 1 |