diff options
author | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2013-01-06 18:07:08 +0000 |
---|---|---|
committer | Alexandre Ratchov <ratchov@cvs.openbsd.org> | 2013-01-06 18:07:08 +0000 |
commit | 78186d867d06886c1c55c1d65e29296ce530beac (patch) | |
tree | b8808217abafd9d5d5c3383d5053923de810f1eb /sys/dev/wscons/wskbd.c | |
parent | c225acda9a87c9a708b303948146c1b658621b74 (diff) |
don't propagate XF86XK_Audio{Lower,Raise}Volume keys to userspace,
otherwise volume may be adjusted twice: once by X apps and once in
the kernel.
feedback from many, ok shadchin@
Diffstat (limited to 'sys/dev/wscons/wskbd.c')
-rw-r--r-- | sys/dev/wscons/wskbd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/wscons/wskbd.c b/sys/dev/wscons/wskbd.c index a5854bf57af..535a5a57e1c 100644 --- a/sys/dev/wscons/wskbd.c +++ b/sys/dev/wscons/wskbd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: wskbd.c,v 1.71 2012/10/17 00:48:23 jsg Exp $ */ +/* $OpenBSD: wskbd.c,v 1.72 2013/01/06 18:07:07 ratchov Exp $ */ /* $NetBSD: wskbd.c,v 1.80 2005/05/04 01:52:16 augustss Exp $ */ /* @@ -1648,11 +1648,11 @@ wskbd_translate(struct wskbd_internal *id, u_int type, int value) case KS_AudioMute: workq_add_task(NULL, 0, (workq_fn)wskbd_set_mixervolume, (void *)(long)0, (void *)(int)1); - break; + return (0); case KS_AudioLower: workq_add_task(NULL, 0, (workq_fn)wskbd_set_mixervolume, (void *)(long)-1, (void*)(int)1); - break; + return (0); case KS_AudioRaise: workq_add_task(NULL, 0, (workq_fn)wskbd_set_mixervolume, (void *)(long)1, (void*)(int)1); |