commit
bad2bbfb31
|
@ -302,22 +302,7 @@ end
|
||||||
function rules.delayed_properties.switchtotag(c, value)
|
function rules.delayed_properties.switchtotag(c, value)
|
||||||
if not value then return end
|
if not value then return end
|
||||||
|
|
||||||
local selected_tags = {}
|
atag.viewmore(c: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
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function rules.extra_properties.geometry(c, _, props)
|
function rules.extra_properties.geometry(c, _, props)
|
||||||
|
|
|
@ -1479,6 +1479,13 @@ capi.tag.connect_signal("request::select", tag.object.view_only)
|
||||||
|
|
||||||
capi.screen.connect_signal("tag::history::update", tag.history.update)
|
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)
|
capi.screen.connect_signal("removed", function(s)
|
||||||
-- First give other code a chance to move the tag to another screen
|
-- First give other code a chance to move the tag to another screen
|
||||||
for _, t in pairs(s.tags) do
|
for _, t in pairs(s.tags) do
|
||||||
|
|
Loading…
Reference in New Issue