client: Update existing code to use `property::active`.
This commit is contained in:
parent
04c757322c
commit
55a097efc7
|
@ -553,8 +553,7 @@ local function new(c, args)
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Update the colors when focus changes
|
-- Update the colors when focus changes
|
||||||
c:connect_signal("focus", update_colors)
|
c:connect_signal("property::active", update_colors)
|
||||||
c:connect_signal("unfocus", update_colors)
|
|
||||||
|
|
||||||
-- Inform the drawable when it becomes invisible
|
-- Inform the drawable when it becomes invisible
|
||||||
c:connect_signal("request::unmanage", function()
|
c:connect_signal("request::unmanage", function()
|
||||||
|
|
|
@ -539,8 +539,7 @@ function taglist.new(args, filter, buttons, style, update_function, base_widget)
|
||||||
end
|
end
|
||||||
local uc = function (c) return u(c.screen) end
|
local uc = function (c) return u(c.screen) end
|
||||||
local ut = function (t) return u(t.screen) end
|
local ut = function (t) return u(t.screen) end
|
||||||
capi.client.connect_signal("focus", uc)
|
capi.client.connect_signal("property::active", uc)
|
||||||
capi.client.connect_signal("unfocus", uc)
|
|
||||||
tag.attached_connect_signal(nil, "property::selected", ut)
|
tag.attached_connect_signal(nil, "property::selected", ut)
|
||||||
tag.attached_connect_signal(nil, "property::icon", ut)
|
tag.attached_connect_signal(nil, "property::icon", ut)
|
||||||
tag.attached_connect_signal(nil, "property::hide", ut)
|
tag.attached_connect_signal(nil, "property::hide", ut)
|
||||||
|
|
|
@ -630,8 +630,7 @@ function tasklist.new(args, filter, buttons, style, update_function, base_widget
|
||||||
end
|
end
|
||||||
end)
|
end)
|
||||||
capi.client.connect_signal("list", u)
|
capi.client.connect_signal("list", u)
|
||||||
capi.client.connect_signal("focus", u)
|
capi.client.connect_signal("property::active", u)
|
||||||
capi.client.connect_signal("unfocus", u)
|
|
||||||
capi.screen.connect_signal("removed", function(s)
|
capi.screen.connect_signal("removed", function(s)
|
||||||
instances[get_screen(s)] = nil
|
instances[get_screen(s)] = nil
|
||||||
end)
|
end)
|
||||||
|
|
Loading…
Reference in New Issue