summaryrefslogtreecommitdiff
path: root/src/XDefDevCur.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/XDefDevCur.c')
-rw-r--r--src/XDefDevCur.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/XDefDevCur.c b/src/XDefDevCur.c
index 4826021..b8de706 100644
--- a/src/XDefDevCur.c
+++ b/src/XDefDevCur.c
@@ -26,7 +26,7 @@ in this Software without prior written authorization from The Open Group.
/***********************************************************************
*
- * XIDefineDeviceCursor - Change the cursor of an extension input device.
+ * XIDefineCursor - Change the cursor of an extension input device.
*
*/
#include <stdint.h>
@@ -38,9 +38,9 @@ in this Software without prior written authorization from The Open Group.
#include "XIint.h"
-int XIDefineDeviceCursor(Display *dpy, int deviceid, Window w, Cursor cursor)
+int XIDefineCursor(Display *dpy, int deviceid, Window w, Cursor cursor)
{
- xXIChangeDeviceCursorReq *req;
+ xXIChangeCursorReq *req;
XExtDisplayInfo *info = XInput_find_display(dpy);
LockDisplay(dpy);
@@ -48,9 +48,9 @@ int XIDefineDeviceCursor(Display *dpy, int deviceid, Window w, Cursor cursor)
if (_XiCheckExtInit(dpy, XInput_Initial_Release, info) == -1)
return (NoSuchExtension);
- GetReq(XIChangeDeviceCursor, req);
+ GetReq(XIChangeCursor, req);
req->reqType = info->codes->major_opcode;
- req->ReqType = X_XIChangeDeviceCursor;
+ req->ReqType = X_XIChangeCursor;
req->deviceid = deviceid;
req->win = w;
req->cursor = cursor;