summaryrefslogtreecommitdiff
path: root/src/XGrabDev.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/XGrabDev.c
parent6b055729fd0f89eedd2bf00befd8e42804f12b4a (diff)
Mass reindent. Sorry.XORG-7_0_99_901
Diffstat (limited to 'src/XGrabDev.c')
-rw-r--r--src/XGrabDev.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/XGrabDev.c b/src/XGrabDev.c
index f49a6bd..536e369 100644
--- a/src/XGrabDev.c
+++ b/src/XGrabDev.c
@@ -60,31 +60,31 @@ SOFTWARE.
#include <X11/extensions/extutil.h>
#include "XIint.h"
-int
-XGrabDevice (dpy, dev, grab_window, ownerEvents, event_count, event_list,
- this_device_mode, other_devices_mode, time)
- register Display *dpy;
- XDevice *dev;
- Window grab_window;
- Bool ownerEvents;
- int event_count;
- XEventClass *event_list;
- int this_device_mode;
- int other_devices_mode;
- Time time;
- {
+int
+XGrabDevice(dpy, dev, grab_window, ownerEvents, event_count, event_list,
+ this_device_mode, other_devices_mode, time)
+ register Display *dpy;
+ XDevice *dev;
+ Window grab_window;
+ Bool ownerEvents;
+ int event_count;
+ XEventClass *event_list;
+ int this_device_mode;
+ int other_devices_mode;
+ Time time;
+{
xGrabDeviceReply rep;
register xGrabDeviceReq *req;
- XExtDisplayInfo *info = XInput_find_display (dpy);
+ XExtDisplayInfo *info = XInput_find_display(dpy);
- LockDisplay (dpy);
+ LockDisplay(dpy);
if (_XiCheckExtInit(dpy, XInput_Initial_Release) == -1)
return (NoSuchExtension);
- GetReq(GrabDevice,req);
+ GetReq(GrabDevice, req);
req->reqType = info->codes->major_opcode;
req->ReqType = X_GrabDevice;
-
+
req->deviceid = dev->device_id;
req->grabWindow = grab_window;
req->ownerEvents = ownerEvents;
@@ -95,15 +95,15 @@ XGrabDevice (dpy, dev, grab_window, ownerEvents, event_count, event_list,
req->length += event_count;
/* note: Data is a macro that uses its arguments multiple
- times, so "nvalues" is changed in a separate assignment
- statement */
+ * times, so "nvalues" is changed in a separate assignment
+ * statement */
event_count <<= 2;
- Data32 (dpy, (long *) event_list, event_count);
+ Data32(dpy, (long *)event_list, event_count);
- if (_XReply (dpy, (xReply *) &rep, 0, xTrue) == 0)
+ if (_XReply(dpy, (xReply *) & rep, 0, xTrue) == 0)
rep.status = GrabSuccess;
UnlockDisplay(dpy);
SyncHandle();
return (rep.status);
- }
+}