client: emit property::struts on struts changes
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
ff906a8529
commit
efed142b97
3
client.c
3
client.c
|
@ -1628,6 +1628,9 @@ luaA_client_struts(lua_State *L)
|
||||||
ewmh_update_client_strut(c);
|
ewmh_update_client_strut(c);
|
||||||
|
|
||||||
hook_property(c, "struts");
|
hook_property(c, "struts");
|
||||||
|
luaA_object_push(globalconf.L, c);
|
||||||
|
luaA_object_emit_signal(L, -1, "property::struts", 0);
|
||||||
|
lua_pop(globalconf.L, 1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
3
ewmh.c
3
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];
|
c->strut.bottom_end_x = strut[11];
|
||||||
|
|
||||||
hook_property(c, "struts");
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue