From 9c77aa58c592b77b5a2d4345009dc7b777be4caa Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sat, 10 Jun 2017 23:44:12 -0400 Subject: [PATCH] rules: Replace switchtotag implementation with awful.tag.viewmore. Fix #1493 --- lib/awful/rules.lua | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/lib/awful/rules.lua b/lib/awful/rules.lua index c0337c0d1..dc1c60864 100644 --- a/lib/awful/rules.lua +++ b/lib/awful/rules.lua @@ -302,22 +302,7 @@ end function rules.delayed_properties.switchtotag(c, value) if not value then return end - local selected_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 + atag.viewmore(c:tags()) end function rules.extra_properties.geometry(c, _, props)