From db8d0d80ee0abacb066ece3a7a7698a07eecc1d9 Mon Sep 17 00:00:00 2001 From: jbm Date: Fri, 31 Aug 2001 22:34:55 +0000 Subject: Restore mouse resolution to default value at exit. --- usr.sbin/wsmoused/wsmoused.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr.sbin') 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; } -- cgit v1.2.3