tag: Save history after the first iteration

Fix #1651
This commit is contained in:
Emmanuel Lepage Vallee 2017-06-10 23:52:13 -04:00
parent 9c77aa58c5
commit 1839c4ecaa
1 changed files with 7 additions and 0 deletions

View File

@ -1479,6 +1479,13 @@ capi.tag.connect_signal("request::select", tag.object.view_only)
capi.screen.connect_signal("tag::history::update", tag.history.update)
-- Make sure the history is set early
timer.delayed_call(function()
for s in capi.screen do
s:emit_signal("tag::history::update")
end
end)
capi.screen.connect_signal("removed", function(s)
-- First give other code a chance to move the tag to another screen
for _, t in pairs(s.tags) do