From c26c2afc720d615c72acd4f5f3debed285e0dcb8 Mon Sep 17 00:00:00 2001 From: Henrik Rydberg Date: Tue, 22 Feb 2011 15:46:34 +0100 Subject: 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 --- src/frame-xi2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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,10 +179,12 @@ static void init_valuators(utouch_frame_handle fh, if (v->resolution > 0) s->phys_pressure = v->max / v->resolution; } -#if 0 +#ifdef ABS_MT_DISTANCE +#ifdef AXIS_LABEL_PROP_ABS_MT_DISTANCE set_field(fh, name, v->number, ABS_MT_DISTANCE) { s->use_distance = 1; } +#endif #endif XFree(name); } -- cgit v1.2.3