summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/evdev.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/evdev.c b/src/evdev.c
index 596eed9..0f81fb8 100644
--- a/src/evdev.c
+++ b/src/evdev.c
@@ -1712,6 +1712,12 @@ EvdevProbe(InputInfoPtr pInfo)
pEvdev->flags |= EVDEV_TOUCHSCREEN;
pEvdev->flags |= EVDEV_BUTTON_EVENTS;
}
+ } else if (!(TestBit(REL_X, pEvdev->rel_bitmask) &&
+ TestBit(REL_Y, pEvdev->rel_bitmask)) && has_lmr) {
+ /* some touchscreens use BTN_LEFT rather than BTN_TOUCH */
+ xf86IDrvMsg(pInfo, X_PROBED, "Found absolute touchscreen\n");
+ pEvdev->flags |= EVDEV_TOUCHSCREEN;
+ pEvdev->flags |= EVDEV_BUTTON_EVENTS;
}
}
}