panel: Ensure client exists after delayed call
This commit is contained in:
parent
832ccc693e
commit
0e3abe505b
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue