screen: emit signals when workarea size changes
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
d6fd7f1116
commit
5fe32859f7
1
client.c
1
client.c
|
@ -1586,6 +1586,7 @@ luaA_client_struts(lua_State *L)
|
||||||
ewmh_update_strut(c->window, &c->strut);
|
ewmh_update_strut(c->window, &c->strut);
|
||||||
hook_property(c, "struts");
|
hook_property(c, "struts");
|
||||||
luaA_object_emit_signal(L, 1, "property::struts", 0);
|
luaA_object_emit_signal(L, 1, "property::struts", 0);
|
||||||
|
screen_emit_signal(L, c->screen, "property::workarea", 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
return luaA_pushstrut(L, c->strut);
|
return luaA_pushstrut(L, c->strut);
|
||||||
|
|
2
wibox.c
2
wibox.c
|
@ -921,6 +921,8 @@ luaA_wibox_struts(lua_State *L)
|
||||||
if(w->window)
|
if(w->window)
|
||||||
ewmh_update_strut(w->window, &w->strut);
|
ewmh_update_strut(w->window, &w->strut);
|
||||||
luaA_object_emit_signal(L, 1, "property::struts", 0);
|
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);
|
return luaA_pushstrut(L, w->strut);
|
||||||
|
|
Loading…
Reference in New Issue