corner layout: Properly "local"ize variables

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2015-06-12 10:52:44 +02:00
parent f2e74994f2
commit a64cd26f62
1 changed files with 2 additions and 2 deletions

View File

@ -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