"Really" deprecate the client marked and unmarked signals.

The doc said they were deprecated in 4.0, but back then there was
no API to deprecate signals.
This commit is contained in:
Emmanuel Lepage-Vallee 2019-12-31 13:01:10 -08:00 committed by Emmanuel Lepage Vallee
parent 46026ccc2e
commit cb9c33cda8
1 changed files with 9 additions and 0 deletions

View File

@ -1716,6 +1716,15 @@ capi.client.connect_signal("unmanage::connected", function()
)
end)
for _, sig in ipairs {"marked", "unmarked"} do
capi.client.connect_signal(sig.."::connected", function()
gdebug.deprecate(
"Use `property::marked` rather than `".. sig .. "`",
{deprecated_in=4}
)
end)
end
-- Connect to "focus" signal, and allow to disable tracking.
do
local disabled_count = 1