summaryrefslogtreecommitdiff
path: root/src/XGrDvBut.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/XGrDvBut.c')
-rw-r--r--src/XGrDvBut.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/src/XGrDvBut.c b/src/XGrDvBut.c
index 48381f8..fbc26ba 100644
--- a/src/XGrDvBut.c
+++ b/src/XGrDvBut.c
@@ -61,25 +61,25 @@ SOFTWARE.
#include "XIint.h"
int
-XGrabDeviceButton (dpy, dev, button, modifiers, modifier_device,
- grab_window, owner_events, event_count, event_list, this_device_mode,
- other_devices_mode)
- register Display *dpy;
- XDevice *dev;
- unsigned int button; /* CARD8 */
- unsigned int modifiers; /* CARD16 */
- XDevice *modifier_device;
- Window grab_window;
- Bool owner_events;
- unsigned int event_count;
- XEventClass *event_list;
- int this_device_mode;
- int other_devices_mode;
- {
+XGrabDeviceButton(dpy, dev, button, modifiers, modifier_device,
+ grab_window, owner_events, event_count, event_list,
+ this_device_mode, other_devices_mode)
+ register Display *dpy;
+ XDevice *dev;
+ unsigned int button; /* CARD8 */
+ unsigned int modifiers; /* CARD16 */
+ XDevice *modifier_device;
+ Window grab_window;
+ Bool owner_events;
+ unsigned int event_count;
+ XEventClass *event_list;
+ int this_device_mode;
+ int other_devices_mode;
+{
register xGrabDeviceButtonReq *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);
@@ -102,13 +102,13 @@ XGrabDeviceButton (dpy, dev, button, modifiers, modifier_device,
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);
UnlockDisplay(dpy);
SyncHandle();
return (Success);
- }
+}