awful.tag: make the screen argument works
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
8f9cc9a262
commit
3ecb3babcb
|
@ -177,8 +177,8 @@ end
|
||||||
-- @param screen Optional screen number.
|
-- @param screen Optional screen number.
|
||||||
function viewidx(i, screen)
|
function viewidx(i, screen)
|
||||||
local tags = capi.screen[screen or capi.mouse.screen]:tags()
|
local tags = capi.screen[screen or capi.mouse.screen]:tags()
|
||||||
local sel = selected()
|
local sel = selected(screen)
|
||||||
viewnone()
|
viewnone(screen)
|
||||||
for k, t in ipairs(tags) do
|
for k, t in ipairs(tags) do
|
||||||
if t == sel then
|
if t == sel then
|
||||||
tags[util.cycle(#tags, k + i)].selected = true
|
tags[util.cycle(#tags, k + i)].selected = true
|
||||||
|
|
Loading…
Reference in New Issue