mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue