From 8b00f438bef0780a3243c68fbfbb568365504c96 Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 17 Jun 2013 00:57:47 +0000 Subject: allow mouse button4 and button5; from Rodrigo Mosconi --- conf.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'conf.c') diff --git a/conf.c b/conf.c index 763e364..6b0abe6 100644 --- a/conf.c +++ b/conf.c @@ -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); -- cgit 1.4.1