summaryrefslogtreecommitdiff
path: root/src/XChgProp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/XChgProp.c')
-rw-r--r--src/XChgProp.c33
1 files changed, 16 insertions, 17 deletions
diff --git a/src/XChgProp.c b/src/XChgProp.c
index 3fa68cf..6939cb3 100644
--- a/src/XChgProp.c
+++ b/src/XChgProp.c
@@ -62,21 +62,21 @@ SOFTWARE.
#include "XIint.h"
int
-XChangeDeviceDontPropagateList (dpy, window, count, events, mode)
- register Display *dpy;
- Window window;
- int count;
- XEventClass *events;
- int mode;
- {
- xChangeDeviceDontPropagateListReq *req;
- XExtDisplayInfo *info = XInput_find_display (dpy);
-
- LockDisplay (dpy);
+XChangeDeviceDontPropagateList(dpy, window, count, events, mode)
+ register Display *dpy;
+ Window window;
+ int count;
+ XEventClass *events;
+ int mode;
+{
+ xChangeDeviceDontPropagateListReq *req;
+ XExtDisplayInfo *info = XInput_find_display(dpy);
+
+ LockDisplay(dpy);
if (_XiCheckExtInit(dpy, XInput_Initial_Release) == -1)
return (NoSuchExtension);
- GetReq(ChangeDeviceDontPropagateList,req);
+ GetReq(ChangeDeviceDontPropagateList, req);
req->reqType = info->codes->major_opcode;
req->ReqType = X_ChangeDeviceDontPropagateList;
req->window = window;
@@ -85,14 +85,13 @@ XChangeDeviceDontPropagateList (dpy, window, count, events, mode)
req->length += 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 */
count <<= 2;
- Data32 (dpy, (long *) events, count);
+ Data32(dpy, (long *)events, count);
UnlockDisplay(dpy);
SyncHandle();
return (Success);
- }
-
+}