From df0768110956cf29666f6a18893a576049e4c2fa Mon Sep 17 00:00:00 2001 From: Gregor Best Date: Tue, 25 Aug 2009 13:59:34 +0200 Subject: [PATCH] awful.tag: fix viewidx() Signed-off-by: Gregor Best Signed-off-by: Julien Danjou --- 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 3c9b8e1e1..8ec1bbd61 100644 --- a/lib/awful/tag.lua.in +++ b/lib/awful/tag.lua.in @@ -216,7 +216,7 @@ end -- @param i The relative index to see. -- @param screen Optional screen number. function viewidx(i, screen) - local screen = scree or capi.mouse.screen + local screen = screen and screen.index or capi.mouse.screen local tags = capi.screen[screen]:tags() local showntags = {} for k, t in ipairs(tags) do