summaryrefslogtreecommitdiff
path: root/patches/tabbed-clientnumber-0.6.diff
diff options
context:
space:
mode:
authorAndrew Guschin <saintruler@gmail.com>2021-03-28 16:34:54 +0400
committerAndrew Guschin <saintruler@gmail.com>2021-03-28 16:34:54 +0400
commit2c55c043b94adcf9810ee9e7b7d46aa4472b3aa9 (patch)
treea5afc69382961e3e2615d47496d1dc3586550b59 /patches/tabbed-clientnumber-0.6.diff
Initial commit
Diffstat (limited to 'patches/tabbed-clientnumber-0.6.diff')
-rw-r--r--patches/tabbed-clientnumber-0.6.diff23
1 files changed, 23 insertions, 0 deletions
diff --git a/patches/tabbed-clientnumber-0.6.diff b/patches/tabbed-clientnumber-0.6.diff
new file mode 100644
index 0000000..430245c
--- /dev/null
+++ b/patches/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;
+ }