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 <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2017-05-13 23:25:48 +02:00 committed by Daniel Hahler
parent 155c37e759
commit a33527a46c
1 changed files with 6 additions and 0 deletions

View File

@ -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