Show master client title as workspace label in bar

Each tag is drawn as a fixed-width label with the first tagtitlelen
characters of its master client's title; empty tags show tagempty.
Redraw the bar on any title change and after movestack/zoom, since
these can change a label.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-31 21:58:15 +01:00
co-authored by Claude Opus 5.5
parent 45bc3f23dd
commit 0649340152
3 changed files with 54 additions and 15 deletions
+2
View File
@@ -23,6 +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 */
/* logging */
static int log_level = WLR_ERROR;