From a64cd26f6276a5efb2a9ec61583a522cae54173c Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Fri, 12 Jun 2015 10:52:44 +0200 Subject: [PATCH] corner layout: Properly "local"ize variables Signed-off-by: Uli Schlachter --- lib/awful/layout/suit/corner.lua.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/awful/layout/suit/corner.lua.in b/lib/awful/layout/suit/corner.lua.in index 4b31c3fa1..9e6fd2e6d 100644 --- a/lib/awful/layout/suit/corner.lua.in +++ b/lib/awful/layout/suit/corner.lua.in @@ -34,8 +34,8 @@ local function do_corner(p, orientation) master.width = master_factor * wa.width master.height = master_factor * wa.height - number_privileged_win = math.ceil((#cls - 1)/2) - number_unprivileged_win = (#cls - 1) - number_privileged_win + local number_privileged_win = math.ceil((#cls - 1)/2) + local number_unprivileged_win = (#cls - 1) - number_privileged_win -- Define some obvious parameters column.width = wa.width - master.width