X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/046b0279b0f3eb827bcc2b2e395e6ea69c019733..d97e816e0f613ccbcf20e28ebf0a967e93702824:/layout/uselessfair.lua diff --git a/layout/uselessfair.lua b/layout/uselessfair.lua index 92e8d45..7499d91 100644 --- a/layout/uselessfair.lua +++ b/layout/uselessfair.lua @@ -18,11 +18,7 @@ local uselessfair = {} local function fair(p, orientation) -- A useless gap (like the dwm patch) can be defined with -- beautiful.useless_gap_width. - local useless_gap = tonumber(beautiful.useless_gap_width) - if useless_gap == nil - then - useless_gap = 0 - end + local useless_gap = tonumber(beautiful.useless_gap_width) or 0 local wa = p.workarea local cls = p.clients @@ -88,7 +84,7 @@ local function fair(p, orientation) g.height = g.height - 2 * useless_gap g.y = g.y + useless_gap else - g.height = g.height - useless_gap + g.height = g.height - useless_gap end end -- End of useless gap.