summaryrefslogtreecommitdiff
path: root/src/eventcomm.h
diff options
context:
space:
mode:
authorTero Saarni <tero.saarni@gmail.com>2009-07-12 19:24:40 +0300
committerPeter Hutterer <peter.hutterer@who-t.net>2009-07-16 14:54:15 +1000
commit0c3fbceb1b2a18f92166fe75c44b5aaada693c4b (patch)
treebb25e5b2285ad29da4ba293fcec9cca1271bef2e /src/eventcomm.h
parentafb60a0b2497c5d08cbd1739fa8ae6585c428881 (diff)
Add configurable x/y resolution to fix sensitivity on wide touchpads.
Synaptics uses anisotropic coordinate system. On some wide touchpads vertical resolution can be twice as high as horizontal which causes unequal sensitivity on x/y directions. VertResolution and HorizResolution can be used to set the resolution. The ratio of the values is used to compensate x/y sensitivity. The properties are configured automatically if touchpad reports resolution and if running on linux 2.6.31 or newer. Fixes xorg bug #18351. Signed-off-by: Tero Saarni <tero.saarni@gmail.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/eventcomm.h')
-rw-r--r--src/eventcomm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/eventcomm.h b/src/eventcomm.h
index a4a9a44..8fd7bcb 100644
--- a/src/eventcomm.h
+++ b/src/eventcomm.h
@@ -28,6 +28,7 @@
#define _EVENTCOMM_H_
#include <linux/input.h>
+#include <linux/version.h>
/* for auto-dev: */
#define DEV_INPUT_EVENT "/dev/input"