Sanitize argument handling for wibox.layout.stack constructor
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
976b03f8a7
commit
267ab282b2
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue