diff --git a/lib/awful/tag.lua.in b/lib/awful/tag.lua.in index 56fb8d686..0d753669d 100644 --- a/lib/awful/tag.lua.in +++ b/lib/awful/tag.lua.in @@ -345,7 +345,7 @@ end -- @param i The relative index to see. -- @param screen Optional screen number. function tag.viewidx(i, screen) - local screen = screen and screen.index or capi.mouse.screen + local screen = screen or capi.mouse.screen local tags = capi.screen[screen]:tags() local showntags = {} for k, t in ipairs(tags) do