From 743603d24d9d97366db00e6e8ce33c05ab086371 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 22 Sep 2009 14:09:56 +0200 Subject: [PATCH] awful.tag: make viewonly more smart (FS#634) Signed-off-by: Julien Danjou --- lib/awful/tag.lua.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/awful/tag.lua.in b/lib/awful/tag.lua.in index 55131e91..5bbf7b5a 100644 --- a/lib/awful/tag.lua.in +++ b/lib/awful/tag.lua.in @@ -252,8 +252,10 @@ end --- View only a tag. -- @param t The tag object. function viewonly(t) - viewnone(t.screen) - t.selected = true + local tags = capi.screen[screen or capi.mouse.screen]:tags() + for _, tag in pairs(tags) do + tag.selected = (t == tag) + end capi.screen[t.screen]:emit_signal("tag::history::update") end