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.
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue