}
void
-bar_print(struct swm_region *r, char *s)
+bar_print(struct swm_region *r, const char *s)
{
int x = 0;
size_t len;
/* build the default bar format according to the defined enabled options */
void
-bar_fmt(char *fmtexp, char *fmtnew, struct swm_region *r, size_t sz)
+bar_fmt(const char *fmtexp, char *fmtnew, struct swm_region *r, size_t sz)
{
/* if format provided, just copy the buffers */
if (bar_format != NULL) {
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 &&