util.mc: check if client is still valid before setting geometry

This commit is contained in:
copycat-killer 2016-11-19 12:32:29 +01:00
parent bef7f37436
commit 26ca86598f
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ function util.mc(c)
g.height = math.sqrt(mwfact) * mg.height g.height = math.sqrt(mwfact) * mg.height
g.x = mg.x + (mg.width - g.width) / 2 g.x = mg.x + (mg.width - g.width) / 2
g.y = mg.y + (mg.height - g.height) / 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 end
-- Read the nice value of pid from /proc. -- Read the nice value of pid from /proc.