From: Peter Hutterer Date: Mon, 8 Jan 2007 02:03:41 +0000 (+1030) Subject: add ChangeDeviceCursor request X-Git-Tag: inputproto-1.9.99.1~46 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3b84ea85ace4dc9fe1caf7d7c45c0c51ee35b4b2;p=platform%2Fupstream%2Finputproto.git add ChangeDeviceCursor request --- 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; + /********************************************************** *