[wiki] [sites] wiki updated

From: <hg_AT_suckless.org>
Date: Tue, 22 Sep 2009 09:00:04 +0000 (UTC)

changeset: 263:5581d250d4f9
tag: tip
user: nsz_AT_tpx
date: Tue Sep 22 10:59:49 2009 +0200
files: dwm.suckless.org/patches/nmaster-sym.c dwm.suckless.org/patches/nmaster.md
description:
update nmaster with layout symbol


diff -r 1d71478c4136 -r 5581d250d4f9 dwm.suckless.org/patches/nmaster-sym.c
--- a/dwm.suckless.org/patches/nmaster-sym.c Sat Sep 19 18:05:33 2009 +0000
+++ b/dwm.suckless.org/patches/nmaster-sym.c Tue Sep 22 10:59:49 2009 +0200
_AT_@ -33,15 +33,13 @@
 
 static void
 ntile(Monitor *m) {
- static char ntext[8];
         int x, y, h, w, mw, nm;
         unsigned int i, n;
         Client *c;
 
         initnmaster();
         /* override layout symbol */
- snprintf(ntext, sizeof ntext, "%d]=", nmasters[m->num]);
- m->ltsymbol = ntext;
+ snprintf(m->ltsymbol, sizeof m->ltsymbol, "%d]=", nmasters[m->num]);
         for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);
         c = nexttiled(m->clients);
         nm = m->num < MaxMon ? nmasters[m->num] : nmaster;
_AT_@ -82,15 +80,13 @@
 
 static void
 nbstack(Monitor *m) {
- static char ntext[8];
         int x, y, h, w, mh, nm;
         unsigned int i, n;
         Client *c;
 
         initnmaster();
         /* override layout symbol */
- snprintf(ntext, sizeof ntext, "T%dT", nmasters[m->num]);
- m->ltsymbol = ntext;
+ snprintf(m->ltsymbol, sizeof m->ltsymbol, "T%dT", nmasters[m->num]);
         for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);
         c = nexttiled(m->clients);
         nm = m->num < MaxMon ? nmasters[m->num] : nmaster;
diff -r 1d71478c4136 -r 5581d250d4f9 dwm.suckless.org/patches/nmaster.md
--- a/dwm.suckless.org/patches/nmaster.md Sat Sep 19 18:05:33 2009 +0000
+++ b/dwm.suckless.org/patches/nmaster.md Tue Sep 22 10:59:49 2009 +0200
_AT_@ -54,6 +54,6 @@
 
 ## Download
 
-* [nmaster-sym.c](nmaster-sym.c) (dwm 5.7) (20090916) - layout symbol shows the number of masters
+* [nmaster-sym.c](nmaster-sym.c) (dwm 5.7) (20090916) - layout symbol shows the number of masters: `n]=`, `TnT`
 * [nmaster.c](nmaster.c) (dwm 5.6.1) (20090908)
 * see older versions in [historical patches](historical)
Received on Tue Sep 22 2009 - 11:00:04 CEST

This archive was generated by hypermail 2.3.0 : Thu Sep 13 2012 - 19:30:50 CEST