config->mouse: Add number for mouse button (button = "1" or button = "Button1")

This commit is contained in:
Martin Duquesnoy
2008-10-19 17:18:50 +02:00
parent c67e56f15e
commit 740ab1a18d
2 changed files with 12 additions and 7 deletions

View File

@@ -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*

12
wmfsrc
View File

@@ -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"
}