req->type += (int)info->data;
req->type += (int)(long)info->data;
XTestFakeProximityEvent(dpy, dev, in_prox, axes, n_axes, delay)    Display *dpy;    XDevice *dev;    Bool in_prox;    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 = in_prox ? XI_ProximityIn : XI_ProximityOut;    req->type += (int)info->data;    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;}