diff options
| author | Henrik Rydberg <rydberg@euromail.se> | 2011-02-22 15:46:34 +0100 |
|---|---|---|
| committer | Henrik Rydberg <rydberg@euromail.se> | 2011-02-22 15:54:37 +0100 |
| commit | c26c2afc720d615c72acd4f5f3debed285e0dcb8 (patch) | |
| tree | a04f551aa6483f560268527487134ae56f4c4630 /src | |
| parent | 69896eea1e93d5f777e3e522b212d92957574158 (diff) | |
Fix ABS_MT_DISTANCE compilation conditional
The ABS_MT_DISTANCE is new, and the corresponding entry in
xserver-properties.h is even newer. Make compilation conditional on
the existence of those two defines.
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
Diffstat (limited to 'src')
| -rw-r--r-- | src/frame-xi2.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/frame-xi2.c b/src/frame-xi2.c index 7fc38fd..737cff2 100644 --- a/src/frame-xi2.c +++ b/src/frame-xi2.c | |||
| @@ -179,11 +179,13 @@ static void init_valuators(utouch_frame_handle fh, | |||
| 179 | if (v->resolution > 0) | 179 | if (v->resolution > 0) |
| 180 | s->phys_pressure = v->max / v->resolution; | 180 | s->phys_pressure = v->max / v->resolution; |
| 181 | } | 181 | } |
| 182 | #if 0 | 182 | #ifdef ABS_MT_DISTANCE |
| 183 | #ifdef AXIS_LABEL_PROP_ABS_MT_DISTANCE | ||
| 183 | set_field(fh, name, v->number, ABS_MT_DISTANCE) { | 184 | set_field(fh, name, v->number, ABS_MT_DISTANCE) { |
| 184 | s->use_distance = 1; | 185 | s->use_distance = 1; |
| 185 | } | 186 | } |
| 186 | #endif | 187 | #endif |
| 188 | #endif | ||
| 187 | XFree(name); | 189 | XFree(name); |
| 188 | } | 190 | } |
| 189 | } | 191 | } |
