From d4e6411971e9ce4b3eea20ad99fe805d73106f0e Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 22 Sep 2009 15:11:40 +0200 Subject: [PATCH] awful.tag: make viewmore smarter This avoids flickering. Signed-off-by: Julien Danjou --- lib/awful/tag.lua.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/awful/tag.lua.in b/lib/awful/tag.lua.in index 5bbf7b5a4..459a5b781 100644 --- a/lib/awful/tag.lua.in +++ b/lib/awful/tag.lua.in @@ -263,9 +263,9 @@ end -- @param tags A table with tags to view only. -- @param screen Optional screen number of the tags. function viewmore(tags, screen) - viewnone(screen) - for i, t in pairs(tags) do - t.selected = true + local screen_tags = capi.screen[screen or capi.mouse.screen]:tags() + for _, tag in pairs(screen_tags) do + tag.selected = (table.hasitem(tags, tag) ~= nil) end capi.screen[screen]:emit_signal("tag::history::update") end