client: emit property::role after setting value

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-08-21 23:30:07 +02:00
parent 41580c91d8
commit 6e05e20664
1 changed files with 1 additions and 1 deletions

View File

@ -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