From 90bbcf19038b0f951883303db9f7a4ce474e40bd Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Mon, 23 Jan 2017 22:53:01 +0100 Subject: [PATCH] awful.tag: handle invalid client in delayed_call (#1372) A short-lived client (e.g. `urxvt -e false`) might be invalid already when the delayed callback is called. --- lib/awful/tag.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/awful/tag.lua b/lib/awful/tag.lua index a71fa058..66bd0c10 100644 --- a/lib/awful/tag.lua +++ b/lib/awful/tag.lua @@ -1387,6 +1387,9 @@ capi.client.connect_signal("property::screen", function(c) -- awful.rules. It is also messing up the tags before the user have a chance -- to set them manually. timer.delayed_call(function() + if not c.valid then + return + end local tags, new_tags = c:tags(), {} for _, t in ipairs(tags) do