awful.titlebar: Unreference titlebars in unmanage

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2016-01-24 16:27:31 +01:00
parent 791794fa42
commit 69d96ba34d
1 changed files with 4 additions and 0 deletions

View File

@ -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