]> git.madduck.net Git - etc/awesome.git/blobdiff - layout/cascade.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:

net: asynchronous
[etc/awesome.git] / layout / cascade.lua
index 2397a1d00d519b5e97f96c86f060b4b9a480c03d..cc3f50fe8a2c9281386dad9f77d5bfdd14a74a3c 100644 (file)
@@ -15,7 +15,7 @@ local cascade = {
     name     = "cascade",
     nmaster  = 0,
     offset_x = 32,
     name     = "cascade",
     nmaster  = 0,
     offset_x = 32,
-    offset_y = 8, 
+    offset_y = 8,
     tile     = {
         name          = "cascadetile",
         nmaster       = 0,
     tile     = {
         name          = "cascadetile",
         nmaster       = 0,
@@ -35,7 +35,7 @@ local function do_cascade(p, tiling)
     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 not tiling then
         -- Cascade windows.
 
     if not tiling then
         -- Cascade windows.