summaryrefslogtreecommitdiff
path: root/src/properties.c
diff options
context:
space:
mode:
authorChris Bagwell <chris@cnpbagwell.com>2010-07-19 19:30:14 -0500
committerPeter Hutterer <peter.hutterer@who-t.net>2010-07-21 13:08:46 +1000
commit75459b1c0bb85ce0bbeb4270114edddb30ff3b1b (patch)
tree9e353b310bc4dbdd4c75aa1c38a05747d3a069cd /src/properties.c
parent51e9bb815812469f39ad47f723d842bf1893a109 (diff)
Expose width support in capabilites properity.
Some properties are only valid with hardware supports width. Namely, *MinW properties. Config GUI's may wish to disable/grey out options related to width support. This combined with pressure property is good indication when 2 finger scrolling can be supported using emulation. Signed-off-by: Chris Bagwell <chris@cnpbagwell.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/properties.c')
-rw-r--r--src/properties.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/properties.c b/src/properties.c
index ab2a0eb..b17089c 100644
--- a/src/properties.c
+++ b/src/properties.c
@@ -265,7 +265,8 @@ InitDeviceProperties(LocalDevicePtr local)
values[3] = priv->has_double;
values[4] = priv->has_triple;
values[5] = priv->has_pressure;
- prop_capabilities = InitAtom(local->dev, SYNAPTICS_PROP_CAPABILITIES, 8, 6, values);
+ values[6] = priv->has_width;
+ prop_capabilities = InitAtom(local->dev, SYNAPTICS_PROP_CAPABILITIES, 8, 7, values);
values[0] = para->resolution_vert;
values[1] = para->resolution_horiz;