From: bru Date: Wed, 16 Aug 2023 20:53:47 +0000 (+0000) Subject: Identify Synaptics touchpads without multifinger support. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3eb7743c473607cfd7ab5a707bc392b86777e7d2;p=openbsd Identify Synaptics touchpads without multifinger support. ok miod@ --- 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;