From e21b85f5fda2cdda971029baa349caf96352d236 Mon Sep 17 00:00:00 2001 From: James Reed Date: Wed, 6 May 2020 18:44:28 -0600 Subject: [PATCH] awful.tag: Fix handling of stateful layout in `new` Fixes #3056. --- lib/awful/tag.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/awful/tag.lua b/lib/awful/tag.lua index b04687ee..17b162e8 100644 --- a/lib/awful/tag.lua +++ b/lib/awful/tag.lua @@ -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