summaryrefslogtreecommitdiffstats
path: root/tabbed.c
diff options
context:
space:
mode:
authorDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2023-01-01 16:18:36 -0500
committerDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2023-01-01 16:18:36 -0500
commit02fd939c0b1cbba5de57ead27449bb71bc959f65 (patch)
tree9bc792ac2ba4ae9b4c6c1c9e9aa4867adff08830 /tabbed.c
parent9a03146d93922f188b0a068ab1fe29fd76e8e68c (diff)
downloadtabbed-02fd939c0b1cbba5de57ead27449bb71bc959f65.tar.gz
Applied client number patch
Diffstat (limited to 'tabbed.c')
-rw-r--r--tabbed.c5
1 files changed, 4 insertions, 1 deletions
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;
}