mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
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 <git@thequod.de>
This commit is contained in:
parent
620732a015
commit
c8cbada899
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue