From 39e907f5d8e81fc1bd230d1fe843325bc9f08db5 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 27 Apr 2009 11:17:16 +0200 Subject: [PATCH] luaa: refresh all wiboxes on font change Signed-off-by: Julien Danjou --- luaa.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/luaa.c b/luaa.c index 0c387d5c..c2983840 100644 --- a/luaa.c +++ b/luaa.c @@ -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: