awful.tag: Apply a default layout to tags (#1952)

Related-to: https://github.com/awesomeWM/awesome/pull/1950
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2017-07-29 19:58:45 +02:00 committed by Emmanuel Lepage Vallée
parent 0836cf90c5
commit 60b5df1308
2 changed files with 5 additions and 0 deletions

View File

@ -745,6 +745,10 @@ function tag.object.set_layout(t, layout)
return layout
end
function tag.object.get_layout(t)
return tag.getproperty(t, "layout") or require("awful.layout.suit.floating")
end
--- Set layout.
-- @deprecated awful.tag.setlayout
-- @see layout

View File

@ -69,6 +69,7 @@ local steps = {
assert(beautiful.awesome_icon)
local t = awful.tag.add("Test", {clients={c}, icon = beautiful.awesome_icon})
assert(t.layout == awful.layout.suit.floating)
check_order()