[psm] Do not disable trackpoint when hw.psm.elantech.touchpad_off is enabled

PR:		246117
Reported by:	Alexander Sieg <ports@xanderio.de>
MFC after:	1 week
This commit is contained in:
wulf 2020-06-02 00:53:39 +00:00
parent c7b47855dc
commit ac981d2894

View File

@ -4441,7 +4441,7 @@ proc_elantech(struct psm_softc *sc, packetbuf_t *pb, mousestatus_t *ms,
*x = *y = *z = 0;
ms->button = ms->obutton;
if (sc->syninfo.touchpad_off)
if (sc->syninfo.touchpad_off && pkt != ELANTECH_PKT_TRACKPOINT)
return (0);
/* Common legend