client: emit property::struts on struts changes

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-08-18 11:52:37 +02:00
parent ff906a8529
commit efed142b97
2 changed files with 6 additions and 0 deletions

View File

@ -1628,6 +1628,9 @@ luaA_client_struts(lua_State *L)
ewmh_update_client_strut(c);
hook_property(c, "struts");
luaA_object_push(globalconf.L, c);
luaA_object_emit_signal(L, -1, "property::struts", 0);
lua_pop(globalconf.L, 1);
}
}

3
ewmh.c
View File

@ -620,6 +620,9 @@ ewmh_process_client_strut(client_t *c, xcb_get_property_reply_t *strut_r)
c->strut.bottom_end_x = strut[11];
hook_property(c, "struts");
luaA_object_push(globalconf.L, c);
luaA_object_emit_signal(globalconf.L, -1, "property::struts", 0);
lua_pop(globalconf.L, 1);
}
}