awful.tag: fix screen in viewonly

Signed-off-by: Gregor Best <gbe@intepi.net>
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Gregor Best 2009-09-22 16:23:00 +02:00 committed by Julien Danjou
parent 7c5ba1fcef
commit ae0bf17af2
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ end
--- View only a tag. --- View only a tag.
-- @param t The tag object. -- @param t The tag object.
function viewonly(t) function viewonly(t)
local tags = capi.screen[screen or capi.mouse.screen]:tags() local tags = capi.screen[t.screen or capi.mouse.screen]:tags()
for _, tag in pairs(tags) do for _, tag in pairs(tags) do
tag.selected = (t == tag) tag.selected = (t == tag)
end end