From 0c3ac0468a71be7090b1bdc07206544f4ae030c0 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 16 Jan 2008 20:53:46 +0100 Subject: [PATCH] add support for Button6 and Button7 --- config.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/config.c b/config.c index 18394e5c..3dec4b98 100644 --- a/config.c +++ b/config.c @@ -37,6 +37,14 @@ #define AWESOME_CONFIG_FILE ".awesomerc" +/* Permit to use mouse with many more buttons */ +#ifndef Button6 +#define Button6 6 +#endif +#ifndef Button7 +#define Button7 7 +#endif + extern AwesomeConf globalconf; /** Link a name to a key symbol */ @@ -122,6 +130,8 @@ mouse_button_lookup(const char *button) {"3", Button3}, {"4", Button4}, {"5", Button5}, + {"6", Button6}, + {"7", Button7}, {NULL, 0} }; int i;