diff options
author | jbm <jbm@cvs.openbsd.org> | 2001-08-31 22:34:55 +0000 |
---|---|---|
committer | jbm <jbm@cvs.openbsd.org> | 2001-08-31 22:34:55 +0000 |
commit | db8d0d80ee0abacb066ece3a7a7698a07eecc1d9 (patch) | |
tree | fc68900195b11e9b6ac630b630cbfa3621aaf89d /usr.sbin | |
parent | 7ee8c9b9ad2f2ff9d76bef7dfd1705ab8e22ae97 (diff) |
Restore mouse resolution to default value at exit.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/wsmoused/wsmoused.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/wsmoused/wsmoused.c b/usr.sbin/wsmoused/wsmoused.c index 90d24ad459e..6a6d4751471 100644 --- a/usr.sbin/wsmoused/wsmoused.c +++ b/usr.sbin/wsmoused/wsmoused.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsmoused.c,v 1.3 2001/08/13 06:32:18 pvalchev Exp $ */ +/* $OpenBSD: wsmoused.c,v 1.4 2001/08/31 22:34:54 jbm Exp $ */ /* * Copyright (c) 2001 Jean-Baptiste Marchand, Julien Montagne and Jerome Verdon @@ -223,10 +223,13 @@ static void terminate(int sig) { struct wscons_event event; + unsigned int res; if (mouse.mfd != -1) { event.type = WSCONS_EVENT_WSMOUSED_OFF; ioctl(mouse.mfd, WSDISPLAYIO_WSMOUSED, &event); + res = WSMOUSE_RES_DEFAULT; + ioctl(mouse.mfd, WSMOUSEIO_SRES, &res); close(mouse.mfd); mouse.mfd = -1; } |