From e29a2d3ac9c55290ed74673caf73cddd35954c66 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Sun, 28 Aug 2016 22:18:53 -0400 Subject: [PATCH] client: Add property::tags It is useful for rules debugging. --- objects/client.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/objects/client.c b/objects/client.c index 838112d18..7a6cfa671 100644 --- a/objects/client.c +++ b/objects/client.c @@ -2304,6 +2304,10 @@ luaA_client_swap(lua_State *L) * * Use the `first_tag` field to access the first tag of a client directly. * + * **Signal:** + * + * * *property::tags* + * * @tparam table tags_table A table with tags to set, or `nil` to get the * current tags. * @treturn table A table with all tags. @@ -2342,7 +2346,10 @@ luaA_client_tags(lua_State *L) lua_pushnil(L); while(lua_next(L, 2)) tag_client(L, c); + lua_pop(L, 1); + + luaA_object_emit_signal(L, -1, "property::tags", 0); } lua_newtable(L);