aboutsummaryrefslogtreecommitdiffstats
path: root/tabbed-clientnumber-0.6.diff
diff options
context:
space:
mode:
Diffstat (limited to 'tabbed-clientnumber-0.6.diff')
-rw-r--r--tabbed-clientnumber-0.6.diff23
1 files changed, 23 insertions, 0 deletions
diff --git a/tabbed-clientnumber-0.6.diff b/tabbed-clientnumber-0.6.diff
new file mode 100644
index 0000000..430245c
--- /dev/null
+++ b/tabbed-clientnumber-0.6.diff
@@ -0,0 +1,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;
+ }