diff --git a/common/draw.c b/common/draw.c index e722cb41b..835870e57 100644 --- a/common/draw.c +++ b/common/draw.c @@ -778,13 +778,13 @@ draw_style_init(Display *disp, int phys_screen, cfg_t *cfg, cfg_getstr(cfg, "fg"), &c->fg); draw_color_new(disp, phys_screen, - cfg_getstr(cfg, "bg"), &c->bg); + cfg_getstr(cfg, "bg"), &c->bg); draw_color_new(disp, phys_screen, - cfg_getstr(cfg, "border"), &c->border); + cfg_getstr(cfg, "border"), &c->border); draw_color_new(disp, phys_screen, - cfg_getstr(cfg, "shadow"), &c->shadow); + cfg_getstr(cfg, "shadow"), &c->shadow); c->shadow_offset = cfg_getint(cfg, "shadow_offset"); } diff --git a/widgets/textbox.c b/widgets/textbox.c index 2fbd0699f..129bd12ab 100644 --- a/widgets/textbox.c +++ b/widgets/textbox.c @@ -124,9 +124,9 @@ textbox_new(Statusbar *statusbar, cfg_t *config) w->data = d = p_new(Data, 1); draw_style_init(globalconf.display, phys_screen, - cfg_getsec(config, "style"), - &d->style, - &globalconf.screens[statusbar->screen].styles.normal); + cfg_getsec(config, "style"), + &d->style, + &globalconf.screens[statusbar->screen].styles.normal); d->width = cfg_getint(config, "width"); d->align = cfg_getalignment(config, "text_align");