awful.tag: make the screen argument works

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Gregor Best 2009-01-17 18:55:03 +01:00 committed by Julien Danjou
parent 8f9cc9a262
commit 3ecb3babcb
1 changed files with 2 additions and 2 deletions

View File

@ -177,8 +177,8 @@ end
-- @param screen Optional screen number.
function viewidx(i, screen)
local tags = capi.screen[screen or capi.mouse.screen]:tags()
local sel = selected()
viewnone()
local sel = selected(screen)
viewnone(screen)
for k, t in ipairs(tags) do
if t == sel then
tags[util.cycle(#tags, k + i)].selected = true