From 26ca86598fbdcf1363343323671145c7ebc24418 Mon Sep 17 00:00:00 2001 From: copycat-killer Date: Sat, 19 Nov 2016 12:32:29 +0100 Subject: [PATCH] util.mc: check if client is still valid before setting geometry --- util/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.39.5