From 76fb212332cc625c8c244767de29b9165cac9ce1 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 28 Aug 2009 17:48:52 +0200 Subject: [PATCH] wibox: emit screen property::workarea change on {at,de}tach if wibox has strut Signed-off-by: Julien Danjou --- wibox.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/wibox.c b/wibox.c index 3c1b0e34..be148989 100644 --- a/wibox.c +++ b/wibox.c @@ -715,6 +715,9 @@ wibox_detach(lua_State *L, int udx) hook_property(wibox, "screen"); + if(strut_has_value(&wibox->strut)) + screen_emit_signal(L, wibox->screen, "property::workarea", 0); + wibox->screen = NULL; 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"); 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.