diff options
Diffstat (limited to 'sys/dev/wscons/wsmouse.c')
-rw-r--r-- | sys/dev/wscons/wsmouse.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/dev/wscons/wsmouse.c b/sys/dev/wscons/wsmouse.c index e26cad28f70..981b8c09d18 100644 --- a/sys/dev/wscons/wsmouse.c +++ b/sys/dev/wscons/wsmouse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsmouse.c,v 1.49 2018/11/20 19:00:13 anton Exp $ */ +/* $OpenBSD: wsmouse.c,v 1.50 2018/11/20 19:33:44 anton Exp $ */ /* $NetBSD: wsmouse.c,v 1.35 2005/02/27 00:27:52 perry Exp $ */ /* @@ -497,6 +497,13 @@ wsmouse_do_ioctl(struct wsmouse_softc *sc, u_long cmd, caddr_t data, int flag, sc->sc_base.me_evp->async = *(int *)data != 0; return (0); + case TIOCGPGRP: + evar = sc->sc_base.me_evp; + if (evar == NULL) + return (EINVAL); + *(int *)data = -sigio_getown(&evar->sigio); + return (0); + case TIOCSPGRP: if (*(int *)data < 0) return (EINVAL); |