blob: 430245c6540aa33726bba6737c6a82ffeab53302 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
diff --git a/tabbed.c b/tabbed.c
index d30206b..70642cb 100644
--- a/tabbed.c
+++ b/tabbed.c
@@ -308,6 +308,7 @@ drawbar(void) {
unsigned long *col;
int c, fc, width, n = 0;
char *name = NULL;
+ char tabtitle[256];
if(nclients == 0) {
dc.x = 0;
@@ -353,7 +354,9 @@ drawbar(void) {
} else {
col = 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;
}
|