panel: Ensure client exists after delayed call

This commit is contained in:
James Reed 2020-12-20 17:21:17 -07:00
parent 832ccc693e
commit 0e3abe505b
No known key found for this signature in database
GPG Key ID: 0BE2BD33C5E8125E
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ local function spawn(cmd, args)
end end
c:connect_signal("unfocus", function () c:connect_signal("unfocus", function ()
gtimer.delayed_call(function () gtimer.delayed_call(function ()
if not (client.focus and client.focus.floating) then if c and not (client.focus and client.focus.floating) then
panel.toggle_func(c, false) panel.toggle_func(c, false)
end end
end) end)