summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-03-20 01:43:13 -0500
committerzachir <zachir@librem.one>2023-03-20 01:43:13 -0500
commit35dbc61eeade4a9313203f088892770ee9d6f8cb (patch)
tree7547558f381156a4e9224bcdbe9cb241613ed46c
parent64cfa664cd58676bedca6ad0ad1e6267cfaa1b4f (diff)
rc.lua: add check so 867 will probably not randomly fail
-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