Merge pull request #1831 from Elv13/fix_1493

Fix #1493 and #1651
This commit is contained in:
Emmanuel Lepage Vallée 2017-06-11 17:19:29 -04:00 committed by GitHub
commit bad2bbfb31
2 changed files with 8 additions and 16 deletions

View File

@ -302,22 +302,7 @@ end
function rules.delayed_properties.switchtotag(c, value)
if not value then return end
local selected_tags = {}
for _,v in ipairs(c.screen.selected_tags) do
selected_tags[v] = true
end
local tags = c:tags()
for _, t in ipairs(tags) do
t.selected = true
selected_tags[t] = nil
end
for t in pairs(selected_tags) do
t.selected = false
end
atag.viewmore(c:tags())
end
function rules.extra_properties.geometry(c, _, props)

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