From 740ab1a18d09b81a2bcc30b11545233d254cbe78 Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Sun, 19 Oct 2008 17:18:50 +0200 Subject: [PATCH] config->mouse: Add number for mouse button (button = "1" or button = "Button1") --- src/config.c | 7 ++++++- wmfsrc | 12 ++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/config.c b/src/config.c index 59058cb..0ab8c2d 100644 --- a/src/config.c +++ b/src/config.c @@ -80,7 +80,12 @@ name_to_uint_t mouse_button_list[] = {"Button2", Button2 }, {"Button3", Button3 }, {"Button4", Button4 }, - {"Button5", Button5 } + {"Button5", Button5 }, + {"1", Button1 }, + {"2", Button2 }, + {"3", Button3 }, + {"4", Button4 }, + {"5", Button5 }, }; void* diff --git a/wmfsrc b/wmfsrc index e1deb23..018c079 100644 --- a/wmfsrc +++ b/wmfsrc @@ -66,20 +66,20 @@ buttons button { content = "[-]" - mouse { button = "Button1" func = "set_mwfact" cmd = "-0.01" } + mouse { button = "1" func = "set_mwfact" cmd = "-0.01" } fg_color = "#FFFFFF" bg_color = "#191919" } button { content = "Mwfact" fg_color = "#FFFFFF" bg_color = "#3E3E3E" - mouse { button = "Button4" func = "set_mwfact" cmd = "+0.01" } - mouse { button = "Button5" func = "set_mwfact" cmd = "-0.01" } + mouse { button = "4" func = "set_mwfact" cmd = "+0.01" } + mouse { button = "5" func = "set_mwfact" cmd = "-0.01" } } button { content = "[+] " - mouse { button = "Button1" func = "set_mwfact" cmd = "+0.01" } + mouse { button = "1" func = "set_mwfact" cmd = "+0.01" } fg_color = "#FFFFFF" bg_color = "#191919" } @@ -89,7 +89,7 @@ buttons button { content = "[-]" - mouse { button = "Button1" func = "set_nmaster" cmd = "-1" } + mouse { button = "1" func = "set_nmaster" cmd = "-1" } fg_color = "#FFFFFF" bg_color = "#191919" } @@ -97,7 +97,7 @@ buttons button { content = "[+] " - mouse { button = "Button1" func = "set_nmaster" cmd = "+1" } + mouse { button = "1" func = "set_nmaster" cmd = "+1" } fg_color = "#FFFFFF" bg_color = "#191919" }