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:
Arvydas Sidorenko 2012-06-16 13:23:00 +02:00 committed by Uli Schlachter
parent b18b504fdf
commit ce19cabae3
2 changed files with 3 additions and 3 deletions

View File

@ -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])

View File

@ -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