From e0423796b075b21cf3252a9d59b6c23dbf2bb46c Mon Sep 17 00:00:00 2001 From: Stephen Bolton Date: Tue, 14 Dec 2021 12:29:32 -0700 Subject: [PATCH] Fix handling of signals in scratchpad when client is nil (#148; closes #146) --- module/scratchpad.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/scratchpad.lua b/module/scratchpad.lua index 6f1bf8b..6ef011f 100644 --- a/module/scratchpad.lua +++ b/module/scratchpad.lua @@ -293,10 +293,10 @@ function Scratchpad:turn_on() animate_turn_on(self, anim_y, "y") end self:emit_signal("inital_apply", c1) - self.client.disconnect_signal("manage", inital_apply) + client.disconnect_signal("manage", inital_apply) end end - self.client.connect_signal("manage", inital_apply) + client.connect_signal("manage", inital_apply) end end end