summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoshua Goins <josh@redstrate.com>2023-03-03 22:02:02 -0500
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-03-07 09:42:11 +0900
commitebc03f5d7abdb9f600ee02d0299f3d4fad0836dd (patch)
tree7e9c75f67a01fd89b2955b353ebff65dcd71aa46 /src
parentdf40b7ef5a1d65e0c1aca1817afed559babb6b4c (diff)
downloadsystemd-ebc03f5d7abdb9f600ee02d0299f3d4fad0836dd.tar.gz
udev: Don't mark as tablet if device has relative coordinates
Tablets don't typically have relative coordinates (they are separated on the kernel device layer). However, some Logitech mice report similar supported events, so use the existence of EV_REL to determiner whether or not the device is really a tablet. Fixes bug introduced by 0855ce67726f87a5a67b4fb536d58e0e4428a248. Fixes: #26600
Diffstat (limited to 'src')
-rw-r--r--src/udev/udev-builtin-input_id.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-builtin-input_id.c b/src/udev/udev-builtin-input_id.c
index ef656e0504..540f390530 100644
--- a/src/udev/udev-builtin-input_id.c
+++ b/src/udev/udev-builtin-input_id.c
@@ -258,7 +258,7 @@ static bool test_pointers(sd_device *dev,
if (is_tablet && has_pad_buttons)
is_tablet_pad = true;
- if (has_pad_buttons && has_wheel) {
+ if (has_pad_buttons && has_wheel && !has_rel_coordinates) {
is_tablet = true;
is_tablet_pad = true;
}