diff options
| author | Henrik Rydberg <rydberg@bitmath.org> | 2011-02-21 10:05:09 +0100 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2011-02-21 13:06:46 +0100 |
| commit | 0b9380675caf5c80ec02e46cfc09496210f8ee12 (patch) | |
| tree | e8ad80f7b6eedd8fc40a85499e850a1be1ba6318 /tools | |
| parent | dca27172b0f27fd121ee43a7cc62176a84b44fc5 (diff) | |
Adjust to xi2 api changes
The touch event types have new names since February 2011. Modify
accordingly.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/utouch-frame-test-xi2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/utouch-frame-test-xi2.c b/tools/utouch-frame-test-xi2.c index 015c119..2f4e10b 100644 --- a/tools/utouch-frame-test-xi2.c +++ b/tools/utouch-frame-test-xi2.c | |||
| @@ -126,11 +126,11 @@ static void loop_device(struct frame_test *test) | |||
| 126 | XIEventMask mask; | 126 | XIEventMask mask; |
| 127 | 127 | ||
| 128 | mask.deviceid = XIAllDevices; | 128 | mask.deviceid = XIAllDevices; |
| 129 | mask.mask_len = XIMaskLen(XI_TouchMotion); | 129 | mask.mask_len = XIMaskLen(XI_LASTEVENT); |
| 130 | mask.mask = calloc(mask.mask_len, sizeof(char)); | 130 | mask.mask = calloc(mask.mask_len, sizeof(char)); |
| 131 | 131 | ||
| 132 | XISetMask(mask.mask, XI_TouchBegin); | 132 | XISetMask(mask.mask, XI_TouchBegin); |
| 133 | XISetMask(mask.mask, XI_TouchMotion); | 133 | XISetMask(mask.mask, XI_TouchUpdate); |
| 134 | XISetMask(mask.mask, XI_TouchEnd); | 134 | XISetMask(mask.mask, XI_TouchEnd); |
| 135 | XISetMask(mask.mask, XI_PropertyEvent); | 135 | XISetMask(mask.mask, XI_PropertyEvent); |
| 136 | XISelectEvents(test->display, test->win, &mask, 1); | 136 | XISelectEvents(test->display, test->win, &mask, 1); |
