summaryrefslogtreecommitdiff
path: root/src/XSetMode.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/XSetMode.c')
-rw-r--r--src/XSetMode.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/src/XSetMode.c b/src/XSetMode.c
index 5f62fb1..278c4ff 100644
--- a/src/XSetMode.c
+++ b/src/XSetMode.c
@@ -61,28 +61,27 @@ SOFTWARE.
#include "XIint.h"
int
-XSetDeviceMode (dpy, dev, mode)
- register Display *dpy;
- XDevice *dev;
- int mode;
- {
- xSetDeviceModeReq *req;
- xSetDeviceModeReply rep;
- XExtDisplayInfo *info = XInput_find_display (dpy);
-
- LockDisplay (dpy);
+XSetDeviceMode(dpy, dev, mode)
+ register Display *dpy;
+ XDevice *dev;
+ int mode;
+{
+ xSetDeviceModeReq *req;
+ xSetDeviceModeReply rep;
+ XExtDisplayInfo *info = XInput_find_display(dpy);
+
+ LockDisplay(dpy);
if (_XiCheckExtInit(dpy, XInput_Initial_Release) == -1)
return (NoSuchExtension);
- GetReq(SetDeviceMode,req);
+ GetReq(SetDeviceMode, req);
req->reqType = info->codes->major_opcode;
req->ReqType = X_SetDeviceMode;
req->deviceid = dev->device_id;
req->mode = mode;
- (void) _XReply (dpy, (xReply *) &rep, 0, xTrue);
+ (void)_XReply(dpy, (xReply *) & rep, 0, xTrue);
UnlockDisplay(dpy);
SyncHandle();
return (rep.status);
- }
-
+}