Fixed bug with global `tags` in rc.lua
awful.wibox.tasklist was overwritting `tags` variable breaking all the functionality which uses it. Signed-off-by: Arvydas Sidorenko <asido4@gmail.com> Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
b18b504fdf
commit
ce19cabae3
|
@ -71,7 +71,7 @@ local layouts =
|
|||
|
||||
-- {{{ Tags
|
||||
-- Define a tag table which hold all screen tags.
|
||||
local tags = {}
|
||||
tags = {}
|
||||
for s = 1, screen.count() do
|
||||
-- Each screen has its own tag table.
|
||||
tags[s] = awful.tag({ 1, 2, 3, 4, 5, 6, 7, 8, 9 }, s, layouts[1])
|
||||
|
|
|
@ -167,7 +167,7 @@ function tasklist.filter.currenttags(c, screen)
|
|||
if c.screen ~= screen then return false end
|
||||
-- Include sticky client too
|
||||
if c.sticky then return true end
|
||||
tags = capi.screen[screen]:tags()
|
||||
local tags = capi.screen[screen]:tags()
|
||||
for k, t in ipairs(tags) do
|
||||
if t.selected then
|
||||
local ctags = c:tags()
|
||||
|
@ -192,7 +192,7 @@ function tasklist.filter.minimizedcurrenttags(c, screen)
|
|||
if c.sticky then return true end
|
||||
-- Check client is minimized
|
||||
if not c.minimized then return false end
|
||||
tags = capi.screen[screen]:tags()
|
||||
local tags = capi.screen[screen]:tags()
|
||||
for k, t in ipairs(tags) do
|
||||
-- Select only minimized clients
|
||||
if t.selected then
|
||||
|
|
Loading…
Reference in New Issue