pass all tag properties to awful.tag.add
Previously only name, screen and layout was passed, eveything else was silently discarded.
This commit is contained in:
parent
498e61a00a
commit
cc6e1789b9
9
init.lua
9
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
|
||||
|
|
Loading…
Reference in New Issue