From efed142b97569c302de5ef7b63badf4d7b919665 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 18 Aug 2009 11:52:37 +0200 Subject: [PATCH] client: emit property::struts on struts changes Signed-off-by: Julien Danjou --- client.c | 3 +++ ewmh.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/client.c b/client.c index 305fc4da7..9975bf18b 100644 --- a/client.c +++ b/client.c @@ -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); } } diff --git a/ewmh.c b/ewmh.c index 25aeac375..3f1f24f12 100644 --- a/ewmh.c +++ b/ewmh.c @@ -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); } }