client: emit x,y,width,height signal on size changes

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-09-08 16:09:47 +02:00
parent 26a367fab0
commit b94a32c281
1 changed files with 7 additions and 0 deletions

View File

@ -904,6 +904,13 @@ client_resize(client_t *c, area_t geometry, bool hints)
/* execute hook */ /* execute hook */
hook_property(c, "geometry"); hook_property(c, "geometry");
luaA_object_push(globalconf.L, c);
luaA_object_emit_signal(globalconf.L, -1, "property::x", 0);
luaA_object_emit_signal(globalconf.L, -1, "property::y", 0);
luaA_object_emit_signal(globalconf.L, -1, "property::width", 0);
luaA_object_emit_signal(globalconf.L, -1, "property::height", 0);
lua_pop(globalconf.L, 1);
return true; return true;
} }