[wiki] [sites] [tabbed] clientnumber: add release patch for 0.6 || Quentin Rameau

From: <git_AT_suckless.org>
Date: Sat, 02 Jul 2016 22:51:40 +0200

commit 98380b3dfcb2721cee229fa0aedc5c3f560d1523
Author: Quentin Rameau <quinq_AT_fifth.space>
Date: Sat Jul 2 22:51:03 2016 +0200

    [tabbed] clientnumber: add release patch for 0.6

diff --git a/tools.suckless.org/tabbed/patches/clientnumber.md b/tools.suckless.org/tabbed/patches/clientnumber.md
index 191a854..a2d3a07 100644
--- a/tools.suckless.org/tabbed/patches/clientnumber.md
+++ b/tools.suckless.org/tabbed/patches/clientnumber.md
_AT_@ -5,8 +5,8 @@ window title.
 
 Download
 --------
+* [tabbed-clientnumber-0.6.diff](tabbed-clientnumber-0.6.diff)
 * [tabbed-clientnumber-20160702-bc23614.diff](tabbed-clientnumber-20160702-bc23614.diff)
- (works with 0.6).
 
 Author
 ------
diff --git a/tools.suckless.org/tabbed/patches/tabbed-clientnumber-0.6.diff b/tools.suckless.org/tabbed/patches/tabbed-clientnumber-0.6.diff
new file mode 100644
index 0000000..430245c
--- /dev/null
+++ b/tools.suckless.org/tabbed/patches/tabbed-clientnumber-0.6.diff
_AT_@ -0,0 +1,23 @@
+diff --git a/tabbed.c b/tabbed.c
+index d30206b..70642cb 100644
+--- a/tabbed.c
++++ b/tabbed.c
+_AT_@ -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;
+_AT_@ -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;
+ }
Received on Sat Jul 02 2016 - 22:51:40 CEST

This archive was generated by hypermail 2.3.0 : Sat Jul 02 2016 - 23:00:15 CEST