aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Yakushev <yakushev.alex@gmail.com>2011-02-14 22:55:57 +0200
committerAlexander Yakushev <yakushev.alex@gmail.com>2011-02-14 22:55:57 +0200
commitd9641ceb3b40a523f1e9b15d054b19bb86e52995 (patch)
treef7fc950ac3ec3244ed23cd25c9119b79999b3e0c
parent0e0b19c905d58f6795a57f8042a958a76dec7f60 (diff)
downloadawesompd-d9641ceb3b40a523f1e9b15d054b19bb86e52995.tar.gz
awesompd-d9641ceb3b40a523f1e9b15d054b19bb86e52995.tar.bz2
Fixed bug with volume scrolling changed current track
-rw-r--r--awesompd.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/awesompd.lua b/awesompd.lua
index af88199..9eb24cc 100644
--- a/awesompd.lua
+++ b/awesompd.lua
@@ -131,7 +131,12 @@ function awesompd.ajoin(buttons)
function awesompd:register_buttons(buttons)
widget_buttons = {}
for b=1,table.getn(buttons) do
- mods = self.split(buttons[b][1],"+")
+ if type(buttons[b][1]) == "string" then
+ mods = { buttons[b][1] }
+ else
+ mods = buttons[b][1]
+ end
+-- mods = self.split(buttons[b][1],"+")
table.insert(widget_buttons, awful.button(mods, buttons[b][2], buttons[b][3]))
end
self.widget:buttons(self.ajoin(widget_buttons))