luaa: refresh all wiboxes on font change
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
324387bfed
commit
39e907f5d8
7
luaa.c
7
luaa.c
|
@ -620,6 +620,13 @@ luaA_awesome_newindex(lua_State *L)
|
||||||
const char *newfont = luaL_checkstring(L, 3);
|
const char *newfont = luaL_checkstring(L, 3);
|
||||||
draw_font_delete(&globalconf.font);
|
draw_font_delete(&globalconf.font);
|
||||||
globalconf.font = draw_font_new(newfont);
|
globalconf.font = draw_font_new(newfont);
|
||||||
|
/* refresh all wiboxes */
|
||||||
|
foreach(screen, globalconf.screens)
|
||||||
|
foreach(wibox, screen->wiboxes)
|
||||||
|
(*wibox)->need_update = true;
|
||||||
|
foreach(c, globalconf.clients)
|
||||||
|
if((*c)->titlebar)
|
||||||
|
(*c)->titlebar->need_update = true;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case A_TK_FG:
|
case A_TK_FG:
|
||||||
|
|
Loading…
Reference in New Issue