From f2a2882cf5513102264f3971569ced3534c9b227 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 1 Jul 2008 19:45:07 +0200 Subject: [PATCH] statusbar: fix background color setting Signed-off-by: Julien Danjou --- statusbar.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/statusbar.c b/statusbar.c index f6d838e6..c7a104b2 100644 --- a/statusbar.c +++ b/statusbar.c @@ -565,11 +565,11 @@ luaA_statusbar_newindex(lua_State *L) if((buf = luaL_checkstring(L, 3)) && xcolor_new(globalconf.connection, globalconf.default_screen, buf, &color)) { - xcolor_wipe(&(*statusbar)->colors.fg); - (*statusbar)->colors.fg = color; + xcolor_wipe(&(*statusbar)->colors.bg); + (*statusbar)->colors.bg = color; if((*statusbar)->ctx) - (*statusbar)->ctx->fg = (*statusbar)->colors.fg; + (*statusbar)->ctx->bg = (*statusbar)->colors.bg; (*statusbar)->need_update = true; }