wibox: emit screen property::workarea change on {at,de}tach if wibox has strut

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-08-28 17:48:52 +02:00
parent 0ce77459de
commit 76fb212332
1 changed files with 6 additions and 0 deletions

View File

@ -715,6 +715,9 @@ wibox_detach(lua_State *L, int udx)
hook_property(wibox, "screen"); hook_property(wibox, "screen");
if(strut_has_value(&wibox->strut))
screen_emit_signal(L, wibox->screen, "property::workarea", 0);
wibox->screen = NULL; wibox->screen = NULL;
luaA_object_emit_signal(L, udx, "property::screen", 0); luaA_object_emit_signal(L, udx, "property::screen", 0);
@ -772,6 +775,9 @@ wibox_attach(lua_State *L, int udx, screen_t *s)
hook_property(wibox, "screen"); hook_property(wibox, "screen");
luaA_object_emit_signal(L, udx, "property::screen", 0); luaA_object_emit_signal(L, udx, "property::screen", 0);
if(strut_has_value(&wibox->strut))
screen_emit_signal(L, wibox->screen, "property::workarea", 0);
} }
/** Create a new wibox. /** Create a new wibox.