From cb9c33cda86ea8e165018ce88e1d1d6f2b4fa9fc Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage-Vallee Date: Tue, 31 Dec 2019 13:01:10 -0800 Subject: [PATCH] "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. --- lib/awful/client.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/awful/client.lua b/lib/awful/client.lua index 32715baf3..1a7e51f90 100644 --- a/lib/awful/client.lua +++ b/lib/awful/client.lua @@ -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