From fa36bd0a5964a3a5da31084541759666e7129777 Mon Sep 17 00:00:00 2001 From: Felix Bier Date: Sun, 1 Jul 2012 14:57:25 +0200 Subject: [PATCH] tag.viewidx should take a screen index This makes tag.viewidx take a screen index rather than a screen object, complying with its doc string. This fixes #963. Signed-off-by: Felix Bier Signed-off-by: Uli Schlachter --- lib/awful/tag.lua.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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