diff options
Diffstat (limited to 'src/XChgKbd.c')
-rw-r--r-- | src/XChgKbd.c | 25 |
1 files changed, 12 insertions, 13 deletions
diff --git a/src/XChgKbd.c b/src/XChgKbd.c index b3e2c06..feba239 100644 --- a/src/XChgKbd.c +++ b/src/XChgKbd.c @@ -61,28 +61,27 @@ SOFTWARE. #include "XIint.h" int -XChangeKeyboardDevice (dpy, dev) - register Display *dpy; - XDevice *dev; - { - xChangeKeyboardDeviceReq *req; - xChangeKeyboardDeviceReply rep; - XExtDisplayInfo *info = XInput_find_display (dpy); - - LockDisplay (dpy); +XChangeKeyboardDevice(dpy, dev) + register Display *dpy; + XDevice *dev; +{ + xChangeKeyboardDeviceReq *req; + xChangeKeyboardDeviceReply rep; + XExtDisplayInfo *info = XInput_find_display(dpy); + + LockDisplay(dpy); if (_XiCheckExtInit(dpy, XInput_Initial_Release) == -1) return (NoSuchExtension); - GetReq(ChangeKeyboardDevice,req); + GetReq(ChangeKeyboardDevice, req); req->reqType = info->codes->major_opcode; req->ReqType = X_ChangeKeyboardDevice; req->deviceid = dev->device_id; rep.status = Success; - (void) _XReply (dpy, (xReply *) &rep, 0, xTrue); + (void)_XReply(dpy, (xReply *) & rep, 0, xTrue); UnlockDisplay(dpy); SyncHandle(); return (rep.status); - } - +} |