Merge pull request #3093 from jcrd/awful-tag-fix
awful.tag: Fix handling of stateful layout in `new`
This commit is contained in:
commit
9781f14b10
|
@ -318,7 +318,8 @@ end
|
|||
function tag.new(names, screen, layout)
|
||||
screen = get_screen(screen or 1)
|
||||
-- True if `layout` should be used as the layout of each created tag
|
||||
local have_single_layout = (not layout) or (layout.arrange and layout.name)
|
||||
local have_single_layout = (not layout) or (type(layout) == 'function')
|
||||
or (layout.arrange and layout.name)
|
||||
local tags = {}
|
||||
for id, name in ipairs(names) do
|
||||
local l = layout
|
||||
|
|
Loading…
Reference in New Issue