req->type += (int)info->data;
req->type += (int)(long)info->data;
XTestFakeDeviceButtonEvent(dpy, dev, button, is_press, axes, n_axes, delay)    Display *dpy;    XDevice *dev;    unsigned int button;    Bool is_press;    int *axes;    int n_axes;    unsigned long delay;{    XExtDisplayInfo *info = find_display (dpy);    register xXTestFakeInputReq *req;    XTestICheckExtension (dpy, info, 0);    LockDisplay(dpy);    GetReq(XTestFakeInput, req);    req->reqType = info->codes->major_opcode;    req->xtReqType = X_XTestFakeInput;    req->type = is_press ? XI_DeviceButtonPress : XI_DeviceButtonRelease;    req->type += (int)info->data;    req->detail = button;    req->time = delay;    req->deviceid = dev->device_id;    if (n_axes)	send_axes(dpy, info, req, dev, 0, axes, n_axes);    UnlockDisplay(dpy);    SyncHandle();    return 1;}