diff options
| author | Henrik Rydberg <rydberg@bitmath.org> | 2011-02-21 13:21:37 +0100 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2011-02-21 13:27:43 +0100 |
| commit | 1d577d50fd59895c7c885677fc35998d4e2761b5 (patch) | |
| tree | 879554293aa9373d6adc73d23102e67e913e9899 /tools | |
| parent | b920a6a5808aace8a8d45d50c2ba433c68b7dd4d (diff) | |
Adjust to xi2 api changes
The touch event types have new names since February 2011. Modify
accordingly.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/mtview.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/mtview.c b/tools/mtview.c index 1096070..c607cea 100644 --- a/tools/mtview.c +++ b/tools/mtview.c | |||
| @@ -284,12 +284,12 @@ static void run_window_xi2(struct windata *w, | |||
| 284 | XSelectInput(w->dsp, XDefaultRootWindow(w->dsp), StructureNotifyMask); | 284 | XSelectInput(w->dsp, XDefaultRootWindow(w->dsp), StructureNotifyMask); |
| 285 | 285 | ||
| 286 | mask.deviceid = dev->deviceid; | 286 | mask.deviceid = dev->deviceid; |
| 287 | mask.mask_len = XIMaskLen(XI_TouchMotion); | 287 | mask.mask_len = XIMaskLen(XI_LASTEVENT); |
| 288 | mask.mask = calloc(mask.mask_len, sizeof(char)); | 288 | mask.mask = calloc(mask.mask_len, sizeof(char)); |
| 289 | 289 | ||
| 290 | XISetMask(mask.mask, XI_PropertyEvent); | 290 | XISetMask(mask.mask, XI_PropertyEvent); |
| 291 | XISetMask(mask.mask, XI_TouchBegin); | 291 | XISetMask(mask.mask, XI_TouchBegin); |
| 292 | XISetMask(mask.mask, XI_TouchMotion); | 292 | XISetMask(mask.mask, XI_TouchUpdate); |
| 293 | XISetMask(mask.mask, XI_TouchEnd); | 293 | XISetMask(mask.mask, XI_TouchEnd); |
| 294 | XISelectEvents(w->dsp, w->win, &mask, 1); | 294 | XISelectEvents(w->dsp, w->win, &mask, 1); |
| 295 | 295 | ||
