aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/Xi/opendev.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2018-02-15 21:25:27 +0100
committerMihai Moldovan <ionic@ionic.de>2018-02-26 00:58:46 +0100
commitb0abdf7bd8284b1edf39c13e1863ecc420fd68e4 (patch)
tree191171d5cfdee1851ad3b5246be6363f9d1f3445 /nx-X11/programs/Xserver/Xi/opendev.c
parent7aca428ffe10b2cffca8fe01962aef421a5a5645 (diff)
downloadnx-libs-b0abdf7bd8284b1edf39c13e1863ecc420fd68e4.tar.gz
nx-libs-b0abdf7bd8284b1edf39c13e1863ecc420fd68e4.tar.bz2
nx-libs-b0abdf7bd8284b1edf39c13e1863ecc420fd68e4.zip
Xi: reformat
Diffstat (limited to 'nx-X11/programs/Xserver/Xi/opendev.c')
-rw-r--r--nx-X11/programs/Xserver/Xi/opendev.c30
1 files changed, 10 insertions, 20 deletions
diff --git a/nx-X11/programs/Xserver/Xi/opendev.c b/nx-X11/programs/Xserver/Xi/opendev.c
index 52bd03620..975ed5169 100644
--- a/nx-X11/programs/Xserver/Xi/opendev.c
+++ b/nx-X11/programs/Xserver/Xi/opendev.c
@@ -105,19 +105,16 @@ ProcXOpenDevice(register ClientPtr client)
REQUEST_SIZE_MATCH(xOpenDeviceReq);
if (stuff->deviceid == inputInfo.pointer->id ||
- stuff->deviceid == inputInfo.keyboard->id)
- {
+ stuff->deviceid == inputInfo.keyboard->id) {
SendErrorToClient(client, IReqCode, X_OpenDevice, 0, BadDevice);
return Success;
}
- if ((dev = LookupDeviceIntRec(stuff->deviceid)) == NULL) /* not open */
- {
+ if ((dev = LookupDeviceIntRec(stuff->deviceid)) == NULL) { /* not open */
for (dev = inputInfo.off_devices; dev; dev = dev->next)
if (dev->id == stuff->deviceid)
break;
- if (dev == NULL)
- {
+ if (dev == NULL) {
SendErrorToClient(client, IReqCode, X_OpenDevice, 0, BadDevice);
return Success;
}
@@ -125,8 +122,7 @@ ProcXOpenDevice(register ClientPtr client)
}
OpenInputDevice(dev, client, &status);
- if (status != Success)
- {
+ if (status != Success) {
SendErrorToClient(client, IReqCode, X_OpenDevice, 0, status);
return Success;
}
@@ -137,34 +133,28 @@ ProcXOpenDevice(register ClientPtr client)
rep.repType = X_Reply;
rep.RepType = X_OpenDevice;
rep.sequenceNumber = client->sequence;
- if (dev->key != NULL)
- {
+ if (dev->key != NULL) {
evbase[j].class = KeyClass;
evbase[j++].event_type_base = event_base[KeyClass];
}
- if (dev->button != NULL)
- {
+ if (dev->button != NULL) {
evbase[j].class = ButtonClass;
evbase[j++].event_type_base = event_base[ButtonClass];
}
- if (dev->valuator != NULL)
- {
+ if (dev->valuator != NULL) {
evbase[j].class = ValuatorClass;
evbase[j++].event_type_base = event_base[ValuatorClass];
}
if (dev->kbdfeed != NULL || dev->ptrfeed != NULL || dev->leds != NULL ||
- dev->intfeed != NULL || dev->bell != NULL || dev->stringfeed != NULL)
- {
+ dev->intfeed != NULL || dev->bell != NULL || dev->stringfeed != NULL) {
evbase[j].class = FeedbackClass;
evbase[j++].event_type_base = event_base[FeedbackClass];
}
- if (dev->focus != NULL)
- {
+ if (dev->focus != NULL) {
evbase[j].class = FocusClass;
evbase[j++].event_type_base = event_base[FocusClass];
}
- if (dev->proximity != NULL)
- {
+ if (dev->proximity != NULL) {
evbase[j].class = ProximityClass;
evbase[j++].event_type_base = event_base[ProximityClass];
}