layout: fixed useless_gap retrieval

This commit is contained in:
copycat-killer 2017-01-18 22:54:10 +01:00
parent 430e70670c
commit 75b19142c1
4 changed files with 15 additions and 15 deletions

View File

@ -35,7 +35,7 @@ local function do_cascade(p, tiling)
if #cls <= 0 then return end
-- Useless gaps.
local useless_gap = tag.gap or 0
local useless_gap = p.useless_gap or 0
if not tiling then
-- Cascade windows.

View File

@ -27,7 +27,7 @@ local function do_centerwork(p, orientation)
if #cls <= 0 then return end
-- Useless gaps.
local useless_gap = tag.gap or 0
local useless_gap = p.useless_gap or 0
local c = cls[1]
local g = {}

View File

@ -26,7 +26,7 @@ local function do_fair(p, orientation)
if #cls <= 0 then return end
-- Useless gaps.
local useless_gap = tag.gap or 0
local useless_gap = p.useless_gap or 0
if orientation == "west" then
-- Layout with fixed number of vertical columns (read from nmaster).