screen: emit signals when workarea size changes

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-08-18 15:53:45 +02:00
parent d6fd7f1116
commit 5fe32859f7
2 changed files with 3 additions and 0 deletions

View File

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

View File

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