mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-05-09 04:48:02 +02: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,
|
log_bug_kernel(libinput,
|
||||||
"%s: clickpad advertising right button\n",
|
"%s: clickpad advertising right button\n",
|
||||||
device->devname);
|
device->devname);
|
||||||
} else {
|
} else if (libevdev_has_event_code(device->evdev, EV_KEY, BTN_LEFT) &&
|
||||||
if (!tp->buttons.is_clickpad)
|
!tp->buttons.is_clickpad) {
|
||||||
log_bug_kernel(libinput,
|
log_bug_kernel(libinput,
|
||||||
"%s: non clickpad without right button?\n",
|
"%s: non clickpad without right button?\n",
|
||||||
device->devname);
|
device->devname);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue