]> git.madduck.net Git - etc/awesome.git/commitdiff

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:

centerfair: added no cls[1] case
authorluke bonham <dada@archlinux.info>
Sat, 8 Nov 2014 11:06:48 +0000 (12:06 +0100)
committercopycat-killer <dada@archlinux.info>
Wed, 5 Aug 2015 11:31:14 +0000 (13:31 +0200)
layout/centerfair.lua

index 01a2fe06f064fe04858a0d85118cb304fa8f23b7..e2ecb3391c5ac8035d0983babdadeeb910776346 100644 (file)
@@ -95,7 +95,10 @@ function centerfair.arrange(p)
         g.height = wa.height - 2*useless_gap - 2
         g.x = offset_x + useless_gap + global_border
         g.y = offset_y + global_border
         g.height = wa.height - 2*useless_gap - 2
         g.x = offset_x + useless_gap + global_border
         g.y = offset_y + global_border
-        cls[1]:geometry(g)
+
+        if cls[1] then
+            cls[1]:geometry(g)
+        end
 
         -- Treat the other clients
 
 
         -- Treat the other clients