summaryrefslogtreecommitdiff
path: root/src/XSetMMap.c
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2006-03-31 14:50:24 +0000
committerDaniel Stone <daniel@fooishbar.org>2006-03-31 14:50:24 +0000
commitf50ac4deec13dfd070715f636887e12f6301070f (patch)
treebe5857de4d38d644938ad796fcfaab2c37b9f99f /src/XSetMMap.c
parent6b055729fd0f89eedd2bf00befd8e42804f12b4a (diff)
Mass reindent. Sorry.XORG-7_0_99_901
Diffstat (limited to 'src/XSetMMap.c')
-rw-r--r--src/XSetMMap.c31
1 files changed, 16 insertions, 15 deletions
diff --git a/src/XSetMMap.c b/src/XSetMMap.c
index d31197c..b0838f6 100644
--- a/src/XSetMMap.c
+++ b/src/XSetMMap.c
@@ -60,18 +60,18 @@ SOFTWARE.
#include <X11/extensions/extutil.h>
#include "XIint.h"
-int
-XSetDeviceModifierMapping (dpy, dev, modmap)
- register Display *dpy;
- XDevice *dev;
- XModifierKeymap *modmap;
- {
- int mapSize = modmap->max_keypermod << 3; /* 8 modifiers */
- xSetDeviceModifierMappingReq *req;
- xSetDeviceModifierMappingReply rep;
- XExtDisplayInfo *info = XInput_find_display (dpy);
-
- LockDisplay (dpy);
+int
+XSetDeviceModifierMapping(dpy, dev, modmap)
+ register Display *dpy;
+ XDevice *dev;
+ XModifierKeymap *modmap;
+{
+ int mapSize = modmap->max_keypermod << 3; /* 8 modifiers */
+ xSetDeviceModifierMappingReq *req;
+ xSetDeviceModifierMappingReply rep;
+ XExtDisplayInfo *info = XInput_find_display(dpy);
+
+ LockDisplay(dpy);
if (_XiCheckExtInit(dpy, XInput_Initial_Release) == -1)
return (NoSuchExtension);
@@ -82,10 +82,11 @@ XSetDeviceModifierMapping (dpy, dev, modmap)
req->numKeyPerModifier = modmap->max_keypermod;
memcpy((char *)&req[1], modmap->modifiermap, mapSize);
- (void) _XReply(dpy, (xReply *) &rep,
- (sizeof(xSetDeviceModifierMappingReply) - sizeof(xReply)) >> 2, xTrue);
+ (void)_XReply(dpy, (xReply *) & rep,
+ (sizeof(xSetDeviceModifierMappingReply) -
+ sizeof(xReply)) >> 2, xTrue);
UnlockDisplay(dpy);
SyncHandle();
return (rep.success);
- }
+}