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
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;
}