From 02fd939c0b1cbba5de57ead27449bb71bc959f65 Mon Sep 17 00:00:00 2001 From: "Douglas B. Rumbaugh" Date: Sun, 1 Jan 2023 16:18:36 -0500 Subject: Applied client number patch --- tabbed.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tabbed.c b/tabbed.c index 5b3def5..6ff4bac 100644 --- a/tabbed.c +++ b/tabbed.c @@ -362,6 +362,7 @@ drawbar(void) XftColor *col; int c, cc, fc, width, nbh; char *name = NULL; + char tabtitle[256]; nbh = barvisibility ? vbh : 0; if (nbh != bh) { @@ -412,7 +413,9 @@ drawbar(void) } else { col = clients[c]->urgent ? dc.urg : dc.norm; } - drawtext(clients[c]->name, col); + snprintf(tabtitle, sizeof(tabtitle), "%d: %s", + c + 1, clients[c]->name); + drawtext(tabtitle, col); dc.x += dc.w; clients[c]->tabx = dc.x; } -- cgit v1.2.3