diff --git a/awesomerc.lua.in b/awesomerc.lua.in index da88e201..bfc5791e 100644 --- a/awesomerc.lua.in +++ b/awesomerc.lua.in @@ -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]) diff --git a/lib/awful/widget/tasklist.lua.in b/lib/awful/widget/tasklist.lua.in index 35946e5b..39dc6249 100644 --- a/lib/awful/widget/tasklist.lua.in +++ b/lib/awful/widget/tasklist.lua.in @@ -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