diff --git a/config.def.h b/config.def.h index 4e13856..d135c69 100644 --- a/config.def.h +++ b/config.def.h @@ -23,8 +23,8 @@ static uint32_t colors[][3] = { /* tagging */ static char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; -static const char *tagempty = "[ - ]"; /* label of empty workspaces */ -static const unsigned int tagtitlelen = 7; /* title characters per workspace label */ +static const char *tagempty = " "; /* label of empty workspaces */ +static const unsigned int tagtitlelen = 7; /* max title characters per workspace label */ /* logging */ static int log_level = WLR_ERROR; diff --git a/config.h b/config.h index 88cc304..bdc63ce 100644 --- a/config.h +++ b/config.h @@ -23,8 +23,8 @@ static uint32_t colors[][3] = { /* tagging */ static char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; -static const char *tagempty = "[ - ]"; /* label of empty workspaces */ -static const unsigned int tagtitlelen = 7; /* title characters per workspace label */ +static const char *tagempty = " "; /* label of empty workspaces */ +static const unsigned int tagtitlelen = 7; /* max title characters per workspace label */ /* logging */ static int log_level = WLR_ERROR; diff --git a/dwl-v0.9.tar.gz b/dwl-v0.9.tar.gz new file mode 100644 index 0000000..88b5679 Binary files /dev/null and b/dwl-v0.9.tar.gz differ diff --git a/dwl.c b/dwl.c index 482e011..d18e7b0 100644 --- a/dwl.c +++ b/dwl.c @@ -3110,8 +3110,8 @@ tag(const Arg *arg) drawbars(); } -/* Workspace label: first tagtitlelen characters of the tag's master client - * title, padded with spaces. Empty tags show tagempty. */ +/* Workspace label: at most tagtitlelen characters of the tag's master client + * title. Empty tags show tagempty. */ void taglabel(Monitor *m, unsigned int i, char *buf, size_t size) { @@ -3139,8 +3139,6 @@ taglabel(Monitor *m, unsigned int i, char *buf, size_t size) while ((*s & 0xc0) == 0x80 && n < size - 1); chars++; } - for (; chars < tagtitlelen && n < size - 1; chars++) - buf[n++] = ' '; buf[n] = '\0'; }