statusbar: fix background color setting

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-07-01 19:45:07 +02:00
parent 86df357a2b
commit f2a2882cf5
1 changed files with 3 additions and 3 deletions

View File

@ -565,11 +565,11 @@ luaA_statusbar_newindex(lua_State *L)
if((buf = luaL_checkstring(L, 3)) if((buf = luaL_checkstring(L, 3))
&& xcolor_new(globalconf.connection, globalconf.default_screen, buf, &color)) && xcolor_new(globalconf.connection, globalconf.default_screen, buf, &color))
{ {
xcolor_wipe(&(*statusbar)->colors.fg); xcolor_wipe(&(*statusbar)->colors.bg);
(*statusbar)->colors.fg = color; (*statusbar)->colors.bg = color;
if((*statusbar)->ctx) if((*statusbar)->ctx)
(*statusbar)->ctx->fg = (*statusbar)->colors.fg; (*statusbar)->ctx->bg = (*statusbar)->colors.bg;
(*statusbar)->need_update = true; (*statusbar)->need_update = true;
} }