X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/0f92560ca1dcd8ac38ef4aa6c80d95f4484c4bf8..ba8448f02b2edd7b9e199f7841687b8f44e1c757:/layout/uselesstile.lua diff --git a/layout/uselesstile.lua b/layout/uselesstile.lua index cd288ed..78f7bec 100644 --- a/layout/uselesstile.lua +++ b/layout/uselesstile.lua @@ -21,11 +21,7 @@ local uselesstile = {} local function tile_group(cls, wa, orientation, fact, group) -- 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 -- get our orientation right local height = "height"