diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-10-07 01:52:26 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2010-10-07 01:52:26 +0000 |
commit | 988639a3b404d879f6f40b4b50cae8aafb0e14be (patch) | |
tree | 1b47ffc556144e81f35ffc434801ca5506068869 /sys | |
parent | c887d013e5cd3d01391a679b9c9e0f01a54028a3 (diff) |
Fix some pms(4) vs wsmoused issues. From Alexandr Shadchin via
tech@. Tested on the usual problematic machines by myself, nicm@
and ian@.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pckbc/pms.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/pckbc/pms.c b/sys/dev/pckbc/pms.c index 8a6c3076eab..67913104210 100644 --- a/sys/dev/pckbc/pms.c +++ b/sys/dev/pckbc/pms.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pms.c,v 1.7 2010/10/02 00:28:57 krw Exp $ */ +/* $OpenBSD: pms.c,v 1.8 2010/10/07 01:52:25 krw Exp $ */ /* $NetBSD: psm.c,v 1.11 2000/06/05 22:20:57 sommerfeld Exp $ */ /*- @@ -243,7 +243,8 @@ pms_change_state(struct pms_softc *sc, int newstate) pckbc_slot_enable(sc->sc_kbctag, sc->sc_kbcslot, 1); - pckbc_flush(sc->sc_kbctag, sc->sc_kbcslot); + if (sc->poll) + pckbc_flush(sc->sc_kbctag, sc->sc_kbcslot); cmd[0] = PMS_RESET; res = pms_cmd(sc, cmd, 1, resp, 2); |