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

View file

@ -252,7 +252,7 @@ end
--- View only a tag.
-- @param t The tag object.
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
tag.selected = (t == tag)
end