commit 916d1c4473804f59f0bf946057437c620e31ce77
parent 12613b65f0d2570eb0137ddc142bf707528c75b3
Author: nsz@tpx <unknown>
Date: Tue, 22 Sep 2009 10:59:49 +0200
update nmaster with layout symbol
Diffstat:
2 files changed, 3 insertions(+), 7 deletions(-)
diff --git a/dwm.suckless.org/patches/nmaster-sym.c b/dwm.suckless.org/patches/nmaster-sym.c
@@ -33,15 +33,13 @@ setnmaster(const Arg *arg) {
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;
@@ -82,15 +80,13 @@ ntile(Monitor *m) {
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 --git a/dwm.suckless.org/patches/nmaster.md b/dwm.suckless.org/patches/nmaster.md
@@ -54,6 +54,6 @@ This feature was dropped from vanilla dwm in version 4.4.
## 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)