diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-10-25 13:45:34 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-11-10 13:03:52 +1000 |
commit | 9aea497432322054ff61711abe1d5028a108bcaf (patch) | |
tree | e2c5d1d1fe805c0e235469207a4ae4b8823918a5 | |
parent | 01ea71c11d1eae6787ae16ef4044c7d2b34e1800 (diff) |
test-xi2: Use the longest mask we can get
Avoids ifdefs for touch events lateron
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r-- | src/test_xi2.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |