View | Details | Raw Unified | Return to bug 231058 | Differences between
and this patch

Collapse All | Expand All

(-)b/sys/dev/atkbdc/psm.c (-2 / +3 lines)
Lines 3658-3669 proc_synaptics_mux(struct psm_softc *sc, packetbuf_t *pb) Link Here
3658
			pb->ipacket[0] &= 0xfb;
3658
			pb->ipacket[0] &= 0xfb;
3659
			pb->ipacket[3] &= 0xfb;
3659
			pb->ipacket[3] &= 0xfb;
3660
		}
3660
		}
3661
		sc->muxsave[0] = 0;
3661
		sc->muxsave[0] &= 0x30;
3662
		break;
3662
		break;
3663
3663
3664
	default:	/* Generic mouse (Trackpoint) packet */
3664
	default:	/* Generic mouse (Trackpoint) packet */
3665
		/* Filter out middle button events induced by some w values */
3665
		/* Filter out middle button events induced by some w values */
3666
		if (sc->muxmsbuttons & 0x03 || pb->ipacket[0] & 0x03)
3666
		if (sc->muxmsbuttons & 0x03 || pb->ipacket[0] & 0x03 ||
3667
		    sc->muxsave[0] & 0x30 || sc->muxsave[2] != 0)
3667
			pb->ipacket[0] &= 0xfb;
3668
			pb->ipacket[0] &= 0xfb;
3668
		sc->muxmsbuttons = pb->ipacket[0] & 0x07;
3669
		sc->muxmsbuttons = pb->ipacket[0] & 0x07;
3669
		/* Convert to Synaptics pass-through protocol */
3670
		/* Convert to Synaptics pass-through protocol */

Return to bug 231058