luaa: refresh all wiboxes on font change

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-04-27 11:17:16 +02:00
parent 324387bfed
commit 39e907f5d8
1 changed files with 7 additions and 0 deletions

7
luaa.c
View File

@ -620,6 +620,13 @@ luaA_awesome_newindex(lua_State *L)
const char *newfont = luaL_checkstring(L, 3);
draw_font_delete(&globalconf.font);
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;
case A_TK_FG: