diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2013-06-17 00:57:48 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2013-06-17 00:57:48 +0000 |
commit | 9b167fd8f0a5733f490654d8c5688bb0d5e9db11 (patch) | |
tree | d33d95c3b8394ffd55cb457584dfb6fa15248dd4 /app/cwm | |
parent | bdc3e965c92976b8331be4d3a8edeef261ec07ee (diff) |
allow mouse button4 and button5; from Rodrigo Mosconi
Diffstat (limited to 'app/cwm')
-rw-r--r-- | app/cwm/conf.c | 8 | ||||
-rw-r--r-- | app/cwm/cwmrc.5 | 8 |
2 files changed, 11 insertions, 5 deletions
diff --git a/app/cwm/conf.c b/app/cwm/conf.c index c0e6314a9..f0f17a41c 100644 --- a/app/cwm/conf.c +++ b/app/cwm/conf.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: conf.c,v 1.133 2013/05/23 16:52:39 okan Exp $ + * $OpenBSD: conf.c,v 1.134 2013/06/17 00:57:47 okan Exp $ */ #include <sys/param.h> @@ -545,7 +545,9 @@ static struct { { "menu_cmd", mousefunc_menu_cmd, MOUSEBIND_CTX_ROOT }, }; -static unsigned int mouse_btns[] = { Button1, Button2, Button3 }; +static unsigned int mouse_btns[] = { + Button1, Button2, Button3, Button4, Button5 +}; int conf_mousebind(struct conf *c, char *name, char *binding) @@ -571,7 +573,7 @@ conf_mousebind(struct conf *c, char *name, char *binding) } else substring = name; - button = strtonum(substring, 1, 3, &errstr); + button = strtonum(substring, 1, 5, &errstr); if (errstr) warnx("button number is %s: %s", errstr, substring); diff --git a/app/cwm/cwmrc.5 b/app/cwm/cwmrc.5 index c86b1220f..5f86fcc91 100644 --- a/app/cwm/cwmrc.5 +++ b/app/cwm/cwmrc.5 @@ -1,4 +1,4 @@ -.\" $OpenBSD: cwmrc.5,v 1.52 2013/01/08 15:16:05 okan Exp $ +.\" $OpenBSD: cwmrc.5,v 1.53 2013/06/17 00:57:47 okan Exp $ .\" .\" Copyright (c) 2004,2005 Marius Aamodt Eriksen <marius@monkey.org> .\" @@ -14,7 +14,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: January 8 2013 $ +.Dd $Mdocdate: June 17 2013 $ .Dt CWMRC 5 .Os .Sh NAME @@ -206,6 +206,10 @@ Left mouse button. Middle mouse button. .It 3 Right mouse button. +.It 4 +Scroll up mouse button. +.It 5 +Scroll down mouse button. .El .Pp The |