awful.titlebar: Stop using arg
Implementing vararg functions via arg is deprecated in lua. This kind of thing should instead be done via "...". Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
3961a2ee31
commit
7ef7fe7e03
|
@ -253,8 +253,7 @@ local function button_group(name, attrs, sfn, ...)
|
||||||
s.attributes = attrs
|
s.attributes = attrs
|
||||||
s.states = {}
|
s.states = {}
|
||||||
|
|
||||||
for i = 1, #arg do
|
for i, state in pairs({...}) do
|
||||||
local state = arg[i]
|
|
||||||
s.states[state.idx] = state
|
s.states[state.idx] = state
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue