layout: spiral: remove size check
This is already done by the C code. Signed-off-by: Fabienne Ducroquet <fabiduc@gmail.com> Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
46f5476e20
commit
034a93d691
|
@ -21,8 +21,6 @@ local function spiral(p, dwindle)
|
||||||
local nh = wa.height
|
local nh = wa.height
|
||||||
|
|
||||||
for k, c in ipairs(cls) do
|
for k, c in ipairs(cls) do
|
||||||
if (k % 2 == 0 and nh / 2 > 2 * c.border_width)
|
|
||||||
or (k % 2 == 1 and nw / 2 > 2 * c.border_width) then
|
|
||||||
if k < n then
|
if k < n then
|
||||||
if k % 2 == 0 then
|
if k % 2 == 0 then
|
||||||
nh = nh / 2
|
nh = nh / 2
|
||||||
|
@ -55,7 +53,6 @@ local function spiral(p, dwindle)
|
||||||
if k == 1 then
|
if k == 1 then
|
||||||
ny = wa.y
|
ny = wa.y
|
||||||
end
|
end
|
||||||
end
|
|
||||||
local geom = { x = nx, y = ny, width = nw, height = nh }
|
local geom = { x = nx, y = ny, width = nw, height = nh }
|
||||||
c:geometry(geom)
|
c:geometry(geom)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue