]> git.madduck.net Git - etc/awesome.git/blobdiff - layout/termfair.lua

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

alsabar: revert #275; remove buttons and beautiful deps
[etc/awesome.git] / layout / termfair.lua
index ec127e2efbc080975b3b806e49c0f4572d64f3af..6d244606a87a96b284135dc1361be93c4f7df356 100644 (file)
@@ -9,11 +9,11 @@
                                                   
 --]]
 
                                                   
 --]]
 
-local tag       = require("awful.tag")
-local math      = { ceil  = math.ceil,
-                    floor = math.floor,
-                    max   = math.max }
-local tonumber  = tonumber
+local tag      = require("awful.tag")
+local math     = { ceil  = math.ceil,
+                   floor = math.floor,
+                   max   = math.max }
+local tonumber = tonumber
 
 local termfair  = { name = "termfair" }
 termfair.center = { name = "centerfair" }
 
 local termfair  = { name = "termfair" }
 termfair.center = { name = "centerfair" }
@@ -26,7 +26,7 @@ local function do_fair(p, orientation)
     if #cls <= 0 then return end
 
     -- Useless gaps.
     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).
 
     if orientation == "west" then
         -- Layout with fixed number of vertical columns (read from nmaster).