From be3305b857feeefb23eeda4dfd681101eb9d6d20 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Mon, 1 Aug 2016 13:11:34 -0400 Subject: [PATCH] Fix a screen boundary detection issue --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index a2b3fe7..8a38906 100755 --- a/init.lua +++ b/init.lua @@ -33,7 +33,7 @@ end local function scr_exists(s) local t = type(s) - return (t == "number" and s > 0 and s < capi.screen.count()) + return (t == "number" and s > 0 and s <= capi.screen.count()) or t == "screen" or (t == "table" and s.workarea) end