summaryrefslogtreecommitdiff
path: root/src/XSelect.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/XSelect.c')
-rw-r--r--src/XSelect.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/XSelect.c b/src/XSelect.c
index c0a8dc8..b23829a 100644
--- a/src/XSelect.c
+++ b/src/XSelect.c
@@ -61,19 +61,19 @@ SOFTWARE.
#include "XIint.h"
int
-XSelectExtensionEvent (dpy, w, event_list, count)
- register Display *dpy;
- Window w;
- XEventClass *event_list;
- int count;
- {
- register xSelectExtensionEventReq *req;
- XExtDisplayInfo *info = XInput_find_display (dpy);
-
- LockDisplay (dpy);
- if (_XiCheckExtInit(dpy,XInput_Initial_Release) == -1)
+XSelectExtensionEvent(dpy, w, event_list, count)
+ register Display *dpy;
+ Window w;
+ XEventClass *event_list;
+ int count;
+{
+ register xSelectExtensionEventReq *req;
+ XExtDisplayInfo *info = XInput_find_display(dpy);
+
+ LockDisplay(dpy);
+ if (_XiCheckExtInit(dpy, XInput_Initial_Release) == -1)
return (NoSuchExtension);
- GetReq(SelectExtensionEvent,req);
+ GetReq(SelectExtensionEvent, req);
req->reqType = info->codes->major_opcode;
req->ReqType = X_SelectExtensionEvent;
@@ -82,13 +82,13 @@ XSelectExtensionEvent (dpy, w, event_list, count)
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 *) event_list, count);
+ Data32(dpy, (long *)event_list, count);
UnlockDisplay(dpy);
SyncHandle();
return (Success);
- }
+}