From 6e05e20664134c720da4ea73bc0a53f8bdcfb7d9 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 21 Aug 2009 23:30:07 +0200 Subject: [PATCH] client: emit property::role after setting value Signed-off-by: Julien Danjou --- client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.c b/client.c index 193a2466..f1d81588 100644 --- a/client.c +++ b/client.c @@ -164,8 +164,8 @@ client_set_role(lua_State *L, int cidx, const char *role) { client_t *c = luaA_client_checkudata(L, cidx); p_delete(&c->role); - luaA_object_emit_signal(L, cidx, "property::role", 0); c->role = a_strdup(role); + luaA_object_emit_signal(L, cidx, "property::role", 0); } void