From 3eb7743c473607cfd7ab5a707bc392b86777e7d2 Mon Sep 17 00:00:00 2001 From: bru Date: Wed, 16 Aug 2023 20:53:47 +0000 Subject: [PATCH] Identify Synaptics touchpads without multifinger support. ok miod@ --- sys/dev/pckbc/pms.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/dev/pckbc/pms.c b/sys/dev/pckbc/pms.c index 42121347c3a..108d0f75dd9 100644 --- a/sys/dev/pckbc/pms.c +++ b/sys/dev/pckbc/pms.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pms.c,v 1.97 2022/07/23 05:55:16 sdk Exp $ */ +/* $OpenBSD: pms.c,v 1.98 2023/08/16 20:53:47 bru Exp $ */ /* $NetBSD: psm.c,v 1.11 2000/06/05 22:20:57 sommerfeld Exp $ */ /*- @@ -1075,7 +1075,11 @@ synaptics_get_hwinfo(struct pms_softc *sc) hw->y_max = (max_coords ? SYNAPTICS_Y_LIMIT(max_coords) : SYNAPTICS_YMAX_BEZEL); - hw->contacts_max = SYNAPTICS_MAX_FINGERS; + if ((syn->capabilities & SYNAPTICS_CAP_MULTIFINGER) || + SYNAPTICS_SUPPORTS_AGM(syn->ext_capabilities)) + hw->contacts_max = SYNAPTICS_MAX_FINGERS; + else + hw->contacts_max = 1; syn->sec_buttons = 0; -- 2.20.1