X-Git-Url: https://code.delx.au/spectrwm/blobdiff_plain/60c97b0934142917929bbdbc4af8a4d10f38618f..9a6057d00614b65c8cc56687ff1398cd99e3cb21:/spectrwm.c diff --git a/spectrwm.c b/spectrwm.c index 56b63b3..5667102 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -1841,7 +1841,7 @@ bar_refresh(void) void bar_setup(struct swm_region *r) { - char *bar_font; + char *font; xcb_screen_t *screen = get_screen(r->s->idx); uint32_t wa[3]; @@ -1853,19 +1853,19 @@ bar_setup(struct swm_region *r) if ((r->bar = calloc(1, sizeof(struct swm_bar))) == NULL) err(1, "bar_setup: calloc: failed to allocate memory."); - while ((bar_font = strsep(&bar_fonts, " ,")) != NULL) { - if (*bar_font == '\0') + while ((font = strsep(&bar_fonts, " ,")) != NULL) { + if (*font == '\0') continue; - DNPRINTF(SWM_D_INIT, "bar_setup: try font %s\n", bar_font); + DNPRINTF(SWM_D_INIT, "bar_setup: try font %s\n", font); bar_font = XftFontOpenName(display, DefaultScreen(display), - bar_font); + font); if (!bar_font) { - warnx("unable to load font %s", bar_font); + warnx("unable to load font %s", font); continue; } else { DNPRINTF(SWM_D_INIT, "successfully opened font %s\n", - bar_font); + font); break; } }