do not use the shrinked areas

This commit is contained in:
Xinhao Yuan 2019-07-04 18:09:22 -04:00
parent d1a792e02d
commit 61664bd894
1 changed files with 6 additions and 5 deletions

View File

@ -507,11 +507,12 @@ function start_editor(data)
if to_apply then
layout = api.layout.get(screen)
if layout.set_regions then
local areas_with_gap = {}
for _, a in ipairs(closed_areas) do
areas_with_gap[#areas_with_gap + 1] = shrink_area_with_gap(a, gap)
end
layout.set_regions(areas_with_gap)
-- local areas_with_gap = {}
-- for _, a in ipairs(closed_areas) do
-- areas_with_gap[#areas_with_gap + 1] = shrink_area_with_gap(a, gap)
-- end
-- layout.set_regions(areas_with_gap)
layout.set_regions(closed_areas)
api.layout.arrange(screen)
end
api.gears.timer{