rules: Replace switchtotag implementation with awful.tag.viewmore.

Fix #1493
This commit is contained in:
Emmanuel Lepage Vallee 2017-06-10 23:44:12 -04:00
parent ffead7dcda
commit 9c77aa58c5
1 changed files with 1 additions and 16 deletions

View File

@ -302,22 +302,7 @@ end
function rules.delayed_properties.switchtotag(c, value) function rules.delayed_properties.switchtotag(c, value)
if not value then return end if not value then return end
local selected_tags = {} atag.viewmore(c:tags())
for _,v in ipairs(c.screen.selected_tags) do
selected_tags[v] = true
end
local tags = c:tags()
for _, t in ipairs(tags) do
t.selected = true
selected_tags[t] = nil
end
for t in pairs(selected_tags) do
t.selected = false
end
end end
function rules.extra_properties.geometry(c, _, props) function rules.extra_properties.geometry(c, _, props)