diff options
Diffstat (limited to 'usr.sbin/wsmoused/wsmoused.c')
-rw-r--r-- | usr.sbin/wsmoused/wsmoused.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/wsmoused/wsmoused.c b/usr.sbin/wsmoused/wsmoused.c index 760c64b282b..a468b986ce4 100644 --- a/usr.sbin/wsmoused/wsmoused.c +++ b/usr.sbin/wsmoused/wsmoused.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wsmoused.c,v 1.20 2006/04/17 08:42:41 deraadt Exp $ */ +/* $OpenBSD: wsmoused.c,v 1.21 2007/04/10 22:37:17 miod Exp $ */ /* * Copyright (c) 2001 Jean-Baptiste Marchand, Julien Montagne and Jerome Verdon @@ -357,6 +357,11 @@ split_event(mousestatus_t *act) event.value = act->dz; treat_event(&event); } + if (act->dw != 0) { + event.type = WSCONS_EVENT_MOUSE_DELTA_W; + event.value = act->dw; + treat_event(&event); + } /* buttons state */ mask = act->flags & MOUSE_BUTTONS; |