summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--awesome/rc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/awesome/rc.lua b/awesome/rc.lua
index 7c5b061..179191e 100644
--- a/awesome/rc.lua
+++ b/awesome/rc.lua
@@ -864,7 +864,7 @@ function get_parent_pid(child_ppid, callback)
end
function if_client_and_parent(c1, c2, cl)
- if c1 and (c1:find('^' .. cl.pid) or c2) then
+ if c1 and cl and cl.pid and (c1:find('^' .. cl.pid) or c2) then
return true
end
end