summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorUlf Brosziewski <bru@cvs.openbsd.org>2023-08-16 20:53:48 +0000
committerUlf Brosziewski <bru@cvs.openbsd.org>2023-08-16 20:53:48 +0000
commitaca2aff2c6fdf25407e10cd8682afc086590d6c2 (patch)
treeff62b42511c041f3e7f0dc2cae64ce44b5f09ee8 /sys
parent3512e5f0288cf11a5a332e915a87d060ac56f483 (diff)
Identify Synaptics touchpads without multifinger support.
ok miod@
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pckbc/pms.c8
1 files 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;