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
|
-- {{{ Tags
|
||||||
-- Define a tag table which hold all screen tags.
|
-- Define a tag table which hold all screen tags.
|
||||||
local tags = {}
|
tags = {}
|
||||||
for s = 1, screen.count() do
|
for s = 1, screen.count() do
|
||||||
-- Each screen has its own tag table.
|
-- Each screen has its own tag table.
|
||||||
tags[s] = awful.tag({ 1, 2, 3, 4, 5, 6, 7, 8, 9 }, s, layouts[1])
|
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
|
if c.screen ~= screen then return false end
|
||||||
-- Include sticky client too
|
-- Include sticky client too
|
||||||
if c.sticky then return true end
|
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
|
for k, t in ipairs(tags) do
|
||||||
if t.selected then
|
if t.selected then
|
||||||
local ctags = c:tags()
|
local ctags = c:tags()
|
||||||
|
@ -192,7 +192,7 @@ function tasklist.filter.minimizedcurrenttags(c, screen)
|
||||||
if c.sticky then return true end
|
if c.sticky then return true end
|
||||||
-- Check client is minimized
|
-- Check client is minimized
|
||||||
if not c.minimized then return false end
|
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
|
for k, t in ipairs(tags) do
|
||||||
-- Select only minimized clients
|
-- Select only minimized clients
|
||||||
if t.selected then
|
if t.selected then
|
||||||
|
|
Loading…
Reference in New Issue