awful.layout.set for non active tag

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Leon Winter 2008-12-14 17:09:11 +01:00 committed by Julien Danjou
parent f49ce21335
commit a1489b867b
1 changed files with 2 additions and 2 deletions

View File

@ -51,8 +51,8 @@ end
--- Set the layout function of the current tag.
-- @param layout Layout name.
function set(layout)
local t = tag.selected()
function set(layout, t)
t = t or tag.selected()
tag.setproperty(t, "layout", layout)
capi.hooks.arrange()(t.screen)
end