aboutsummaryrefslogtreecommitdiffstats
path: root/tabbed-clientnumber-0.6.diff
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-04-22 05:25:23 +0000
committerterminaldweller <thabogre@gmail.com>2022-04-22 05:25:23 +0000
commit641062ef0fca969feae3980afd0d22e436a26c41 (patch)
tree5a882d43a56662f82b805e7943873211c4a5b6a1 /tabbed-clientnumber-0.6.diff
parentInitial commit (diff)
downloadtabbed-main.tar.gz
tabbed-main.zip
initial commitHEADmain
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;
+ }