Avoids ifdefs for touch events lateron
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
/* Select for motion events */
mask.deviceid = (deviceid == -1) ? XIAllDevices : deviceid;
/* Select for motion events */
mask.deviceid = (deviceid == -1) ? XIAllDevices : deviceid;
- mask.mask_len = XIMaskLen(XI_RawMotion);
+ mask.mask_len = XIMaskLen(XI_LASTEVENT);
mask.mask = calloc(mask.mask_len, sizeof(char));
XISetMask(mask.mask, XI_ButtonPress);
XISetMask(mask.mask, XI_ButtonRelease);
mask.mask = calloc(mask.mask_len, sizeof(char));
XISetMask(mask.mask, XI_ButtonPress);
XISetMask(mask.mask, XI_ButtonRelease);