Sanitize argument handling for wibox.layout.stack constructor

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2016-02-07 14:13:43 +01:00
parent 976b03f8a7
commit 267ab282b2

View file

@ -163,7 +163,7 @@ function stack:raise_widget(widget, recursive)
end
end
local function new(dir, widget1, ...)
local function new(...)
local ret = fixed.horizontal(...)
util.table.crush(ret, stack)
@ -171,7 +171,7 @@ local function new(dir, widget1, ...)
return ret
end
function stack.mt:__call(...)
function stack.mt:__call(_, ...)
return new(...)
end