Merge pull request #3093 from jcrd/awful-tag-fix

awful.tag: Fix handling of stateful layout in `new`
This commit is contained in:
mergify[bot] 2020-05-07 13:07:34 +00:00 committed by GitHub
commit 9781f14b10
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -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