mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
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:
parent
0836cf90c5
commit
60b5df1308
2 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue