mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-03-22 04:30:41 +01:00
touchpad: don't warn about clickpads without left buttons
Clickpads have BTN_LEFT but no BTN_RIGHT, non-clickpads must have both. Tablet touch devices don't have any buttons, so skip the warning for those. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Hans de Goede <hdegoede@redhat.com>
This commit is contained in:
parent
aa3d09932f
commit
5a4ada08fd
1 changed files with 2 additions and 2 deletions
|
|
@ -667,8 +667,8 @@ tp_init_buttons(struct tp_dispatch *tp,
|
|||
log_bug_kernel(libinput,
|
||||
"%s: clickpad advertising right button\n",
|
||||
device->devname);
|
||||
} else {
|
||||
if (!tp->buttons.is_clickpad)
|
||||
} else if (libevdev_has_event_code(device->evdev, EV_KEY, BTN_LEFT) &&
|
||||
!tp->buttons.is_clickpad) {
|
||||
log_bug_kernel(libinput,
|
||||
"%s: non clickpad without right button?\n",
|
||||
device->devname);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue