summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-03-17 13:25:58 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-03-17 13:27:03 +1000
commitb11439a1763b5f210460b492dd4f47e973f90a3a (patch)
tree326a56848aded7d36461f666df27a0f53ae906f8 /src
parent740dc202f735106532dce581deabe2b95c52759f (diff)
If we have a touchpad, print so, don't claim we're configuring a tablet.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src')
-rw-r--r--src/evdev.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/evdev.c b/src/evdev.c
index e736229..911fdd2 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -1525,7 +1525,10 @@ EvdevProbe(InputInfoPtr pInfo)
if (has_axes && num_buttons) {
pInfo->flags |= XI86_POINTER_CAPABLE | XI86_SEND_DRAG_EVENTS |
XI86_CONFIGURED;
- if (TestBit(ABS_PRESSURE, pEvdev->abs_bitmask)) {
+ if (pEvdev->flags & EVDEV_TOUCHPAD) {
+ xf86Msg(X_INFO, "%s: Configuring as touchpad\n", pInfo->name);
+ pInfo->type_name = XI_TOUCHPAD;
+ } else if (TestBit(ABS_PRESSURE, pEvdev->abs_bitmask)) {
xf86Msg(X_INFO, "%s: Configuring as tablet\n", pInfo->name);
pInfo->type_name = XI_TABLET;
} else {