From cc6e1789b936ae7dd508d6aea461b8d2f63508ab Mon Sep 17 00:00:00 2001 From: Ondrej Grover Date: Sun, 6 Jan 2019 16:02:12 +0100 Subject: [PATCH] pass all tag properties to awful.tag.add Previously only name, screen and layout was passed, eveything else was silently discarded. --- init.lua | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/init.lua b/init.lua index 147e4bd..b731f35 100644 --- a/init.lua +++ b/init.lua @@ -59,11 +59,10 @@ end -- @tparam table t The tag definition table for awful.tag.add -- @treturn table The created tag. function sharedtags.add(i, t) - local tag = awful.tag.add(t.name or i, { - screen = (t.screen and t.screen <= capi.screen.count()) and t.screen or capi.screen.primary, - layout = t.layout, - sharedtagindex = i - }) + t = awful.util.table.clone(t, false) -- shallow copy for modification + t.screen = (t.screen and t.screen <= capi.screen.count()) and t.screen or capi.screen.primary + t.sharedtagindex = i + local tag = awful.tag.add(t.name or i, t) -- If no tag is selected for this screen, then select this one. if not tag.screen.selected_tag then