From 69d96ba34d69708001adb0bf0a542d5e04b1bc7a Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sun, 24 Jan 2016 16:27:31 +0100 Subject: [PATCH] awful.titlebar: Unreference titlebars in unmanage Signed-off-by: Uli Schlachter --- lib/awful/titlebar.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/awful/titlebar.lua b/lib/awful/titlebar.lua index dfe322626..d434a0c6d 100644 --- a/lib/awful/titlebar.lua +++ b/lib/awful/titlebar.lua @@ -296,6 +296,10 @@ function titlebar.widget.stickybutton(c) return widget end +client.connect_signal("unmanage", function(c) + all_titlebars[c] = nil +end) + return setmetatable(titlebar, { __call = function(_, ...) return new(...) end}) -- vim: filetype=lua:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=80