From c8cbada899e2fa307dbfe7368801a1ce9fc8176d Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 12 Mar 2014 01:46:37 +0100 Subject: [PATCH] Emit tag::history::update signal from tag.history.restore Restoring a previous history entry changes the tag history (in the meaning of currently selected tags), and therefore should also emit the tag::history::update signal. A use case might be to automatically hide tags with no clients on them. Signed-off-by: Daniel Hahler --- lib/awful/tag.lua.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/awful/tag.lua.in b/lib/awful/tag.lua.in index 2273d473..0140e222 100644 --- a/lib/awful/tag.lua.in +++ b/lib/awful/tag.lua.in @@ -234,6 +234,8 @@ function tag.history.restore(screen, idx) data.history[s].previous = setmetatable(sel, { __mode = 'v' }) -- remove the reverted history entry if i ~= "previous" then table.remove(data.history[s], i) end + + capi.screen[s]:emit_signal("tag::history::update") end --- Get a list of all tags on a screen