]> 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:

util.mc: check if client is still valid before setting geometry
authorcopycat-killer <dada@archlinux.info>
Sat, 19 Nov 2016 11:32:29 +0000 (12:32 +0100)
committercopycat-killer <dada@archlinux.info>
Sat, 19 Nov 2016 11:32:29 +0000 (12:32 +0100)
util/init.lua

index 70d8e52aa717f27b493a73557a4e3ab100a29413..5fe8213dfae623bc906cefde22eb3ad137810cd9 100644 (file)
@@ -98,7 +98,7 @@ function util.mc(c)
     g.height = math.sqrt(mwfact) * mg.height
     g.x = mg.x + (mg.width - g.width) / 2
     g.y = mg.y + (mg.height - g.height) / 2
-    c:geometry(g)
+    if c then c:geometry(g) end -- if c is still a valid object
 end
 
 -- Read the nice value of pid from /proc.