From b94a32c281203abb64446780b113a304311b75a5 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 8 Sep 2009 16:09:47 +0200 Subject: [PATCH] client: emit x,y,width,height signal on size changes Signed-off-by: Julien Danjou --- client.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/client.c b/client.c index 980242822..6e8c955c2 100644 --- a/client.c +++ b/client.c @@ -904,6 +904,13 @@ client_resize(client_t *c, area_t geometry, bool hints) /* execute hook */ 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; }