summaryrefslogtreecommitdiff
path: root/src/XSetCPtr.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-03-03 14:39:28 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-03-11 14:26:07 +1000
commit5f4058db225d7cb4455fd27b11dff10422e94748 (patch)
tree3abc40bbf02d850d31624a6e33ee97d968c109af /src/XSetCPtr.c
parent2d5bdbe0fad5f22f153aa74e38aa3a1ca09d4192 (diff)
Replace all XDevice* with ints.
There's no reason to have XDevice structs. It's not as if they carry useful information.
Diffstat (limited to 'src/XSetCPtr.c')
-rw-r--r--src/XSetCPtr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/XSetCPtr.c b/src/XSetCPtr.c
index 1c92812..952c0d4 100644
--- a/src/XSetCPtr.c
+++ b/src/XSetCPtr.c
@@ -42,7 +42,7 @@ in this Software without prior written authorization from The Open Group.
#include "XIint.h"
Status
-XISetClientPointer(Display* dpy, Window win, XDevice* device)
+XISetClientPointer(Display* dpy, Window win, int deviceid)
{
xXISetClientPointerReq* req;
XExtDisplayInfo *info = XInput_find_display(dpy);
@@ -55,7 +55,7 @@ XISetClientPointer(Display* dpy, Window win, XDevice* device)
req->reqType = info->codes->major_opcode;
req->ReqType = X_XISetClientPointer;
req->win = win;
- req->deviceid = device->device_id;
+ req->deviceid = deviceid;
UnlockDisplay(dpy);
SyncHandle();