From: Peter Hutterer Date: Tue, 25 Oct 2011 03:45:34 +0000 (+1000) Subject: test-xi2: Use the longest mask we can get X-Git-Url: https://diplodocus.org/git/xorg-xinput/commitdiff_plain/9aea497432322054ff61711abe1d5028a108bcaf?ds=sidebyside test-xi2: Use the longest mask we can get Avoids ifdefs for touch events lateron Signed-off-by: Peter Hutterer --- diff --git a/src/test_xi2.c b/src/test_xi2.c index 4a6c3b6..06be4e7 100644 --- a/src/test_xi2.c +++ b/src/test_xi2.c @@ -329,7 +329,7 @@ test_xi2(Display *display, /* 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);