X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/84313cc876bce8b346ca83934de57b50488ab8cd..ca0c1a666a0a6d17b89633332769618958d3e21d:/util/init.lua?ds=sidebyside diff --git a/util/init.lua b/util/init.lua index 70d8e52..5fe8213 100644 --- a/util/init.lua +++ b/util/init.lua @@ -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.