Hi,

i just noticed it is not possible to set the layout for a non active tag
without switching to him and change layout.

Patch attached.

Regards,
Leon Winer
>From 498c0b3233badc143f1b0f677d39d871c1d5ac46 Mon Sep 17 00:00:00 2001
From: Leon Winter <[email protected]>
Date: Sun, 14 Dec 2008 17:09:11 +0100
Subject: [PATCH] awful.layout.set for non active tag

---
 lib/awful/layout/init.lua.in |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/awful/layout/init.lua.in b/lib/awful/layout/init.lua.in
index 4b0bd40..acc4d23 100644
--- a/lib/awful/layout/init.lua.in
+++ b/lib/awful/layout/init.lua.in
@@ -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)
+    local t = _t or tag.selected()
     tag.setproperty(t, "layout", layout)
     capi.hooks.arrange()(t.screen)
 end
-- 
1.5.6.5

Reply via email to