summaryrefslogtreecommitdiff
path: root/src/XChgPnt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/XChgPnt.c')
-rw-r--r--src/XChgPnt.c29
1 files changed, 14 insertions, 15 deletions
diff --git a/src/XChgPnt.c b/src/XChgPnt.c
index c7248fd..9e0a617 100644
--- a/src/XChgPnt.c
+++ b/src/XChgPnt.c
@@ -61,21 +61,21 @@ SOFTWARE.
#include "XIint.h"
int
-XChangePointerDevice (dpy, dev, xaxis, yaxis)
- register Display *dpy;
- XDevice *dev;
- int xaxis;
- int yaxis;
- {
- xChangePointerDeviceReq *req;
- xChangePointerDeviceReply rep;
- XExtDisplayInfo *info = XInput_find_display (dpy);
-
- LockDisplay (dpy);
+XChangePointerDevice(dpy, dev, xaxis, yaxis)
+ register Display *dpy;
+ XDevice *dev;
+ int xaxis;
+ int yaxis;
+{
+ xChangePointerDeviceReq *req;
+ xChangePointerDeviceReply rep;
+ XExtDisplayInfo *info = XInput_find_display(dpy);
+
+ LockDisplay(dpy);
if (_XiCheckExtInit(dpy, XInput_Initial_Release) == -1)
return (NoSuchExtension);
- GetReq(ChangePointerDevice,req);
+ GetReq(ChangePointerDevice, req);
req->reqType = info->codes->major_opcode;
req->ReqType = X_ChangePointerDevice;
req->deviceid = dev->device_id;
@@ -83,10 +83,9 @@ XChangePointerDevice (dpy, dev, xaxis, yaxis)
req->yaxis = yaxis;
rep.status = Success;
- (void) _XReply (dpy, (xReply *) &rep, 0, xTrue);
+ (void)_XReply(dpy, (xReply *) & rep, 0, xTrue);
UnlockDisplay(dpy);
SyncHandle();
return (rep.status);
- }
-
+}