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
1 changed files with 2 additions and 2 deletions

View File

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