From 5fe32859f7c99de9ac9a2a08cc96e66c48fb2278 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 18 Aug 2009 15:53:45 +0200 Subject: [PATCH] screen: emit signals when workarea size changes Signed-off-by: Julien Danjou --- client.c | 1 + wibox.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/client.c b/client.c index a0ab91aa..1fd1074d 100644 --- a/client.c +++ b/client.c @@ -1586,6 +1586,7 @@ luaA_client_struts(lua_State *L) ewmh_update_strut(c->window, &c->strut); hook_property(c, "struts"); luaA_object_emit_signal(L, 1, "property::struts", 0); + screen_emit_signal(L, c->screen, "property::workarea", 0); } return luaA_pushstrut(L, c->strut); diff --git a/wibox.c b/wibox.c index 12939cf1..b2f0f6d5 100644 --- a/wibox.c +++ b/wibox.c @@ -921,6 +921,8 @@ luaA_wibox_struts(lua_State *L) if(w->window) ewmh_update_strut(w->window, &w->strut); luaA_object_emit_signal(L, 1, "property::struts", 0); + if(w->screen) + screen_emit_signal(L, w->screen, "property::workarea", 0); } return luaA_pushstrut(L, w->strut);