From a33527a46cb7fa1f6ea76fecbe0d2ea6942bd3f1 Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Sat, 13 May 2017 23:25:48 +0200 Subject: [PATCH] Add signal property::size_hints to clients (#1768) This signal is already documented, but so far it did not exist. Fixes: https://github.com/awesomeWM/awesome/issues/1741 Signed-off-by: Uli Schlachter --- property.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/property.c b/property.c index 9453621d..b5c5de14 100644 --- a/property.c +++ b/property.c @@ -160,9 +160,15 @@ property_get_wm_normal_hints(client_t *c) void property_update_wm_normal_hints(client_t *c, xcb_get_property_cookie_t cookie) { + lua_State *L = globalconf_get_lua_State(); + xcb_icccm_get_wm_normal_hints_reply(globalconf.connection, cookie, &c->size_hints, NULL); + + luaA_object_push(L, c); + luaA_object_emit_signal(L, -1, "property::size_hints", 0); + lua_pop(L, 1); } xcb_get_property_cookie_t