X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=spectrwm.c;h=2ecc60f77162f6fd97c608cac2a15fe4992bff2b;hb=09526664b2bce144ef3cade500a70786a5aeaeff;hp=116486ab62728600970b53effc8f223dc1b5ab0a;hpb=9fc72f5c49ab3fdb79776b244ddd45f24132c266;p=spectrwm.git diff --git a/spectrwm.c b/spectrwm.c index 116486a..2ecc60f 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -1459,8 +1459,12 @@ bar_fmt(const char *fmtexp, char *fmtnew, struct swm_region *r, size_t sz) if (urgent_enabled) strlcat(fmtnew, "* +U* ", sz); - if (title_class_enabled) + if (title_class_enabled) { strlcat(fmtnew, "+C", sz); + if (title_name_enabled == 0) + strlcat(fmtnew, " ", sz); + } + if (title_name_enabled) { /* add a colon if showing the class and something is focused */ if (title_class_enabled && r != NULL && r->ws != NULL &&