sites

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 42d849146503332ce67822c41e42e16b1b1f9e7f
parent fae80d0cfe3cce0fdd8916ab7a91251ec4e7b682
Author: kzed@eris <unknown>
Date:   Mon, 24 Aug 2009 17:17:46 +0200

fixed bug in nmaster+bstack-5.6.1 patch
Diffstat:
Mdwm.suckless.org/patches/nmaster+bstack-5.6.1.diff | 12++++++------
Mdwm.suckless.org/patches/nmaster.md | 2+-
2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/dwm.suckless.org/patches/nmaster+bstack-5.6.1.diff b/dwm.suckless.org/patches/nmaster+bstack-5.6.1.diff @@ -1,6 +1,6 @@ diff -r e47a47bd3ed4 config.def.h --- a/config.def.h Tue Jul 21 10:57:54 2009 +0100 -+++ b/config.def.h Mon Aug 17 15:08:48 2009 +0200 ++++ b/config.def.h Mon Aug 24 17:14:00 2009 +0200 @@ -24,11 +24,13 @@ /* layout(s) */ @@ -35,7 +35,7 @@ diff -r e47a47bd3ed4 config.def.h { MODKEY, XK_0, view, {.ui = ~0 } }, diff -r e47a47bd3ed4 dwm.c --- a/dwm.c Tue Jul 21 10:57:54 2009 +0100 -+++ b/dwm.c Mon Aug 17 15:08:48 2009 +0200 ++++ b/dwm.c Mon Aug 24 17:14:00 2009 +0200 @@ -122,6 +122,7 @@ struct Monitor { @@ -104,8 +104,8 @@ diff -r e47a47bd3ed4 dwm.c - resize(c, m->wx, m->wy, (n == 1 ? m->ww : mw) - 2 * c->bw, m->wh - 2 * c->bw, False); - if(--n == 0) - return; -+ if(selmon->nmaster > 0) { -+ nm = n < selmon->nmaster ? n : selmon->nmaster; ++ if(m->nmaster > 0) { ++ nm = n < m->nmaster ? n : m->nmaster; + c = nexttiled(m->clients); + mw = m->mfact * m->ww; + h = m->wh / nm; @@ -150,8 +150,8 @@ diff -r e47a47bd3ed4 dwm.c + if(n == 0) + return; + -+ if(selmon->nmaster > 0) { -+ nm = n < selmon->nmaster ? n : selmon->nmaster; ++ if(m->nmaster > 0) { ++ nm = n < m->nmaster ? n : m->nmaster; + c = nexttiled(m->clients); + mh = m->mfact * m->wh; + x = m->wx; diff --git a/dwm.suckless.org/patches/nmaster.md b/dwm.suckless.org/patches/nmaster.md @@ -44,7 +44,7 @@ The nmaster patch for dwm 4.6 adds two new layouts called ntile (classic) and dn - contains ntile, dntile and tilecols. Also supports the clients-per-tag * [nmaster-4.5.diff][2] (dwm 4.5) (2.7kb) (20071016) * [dwm-4.4.1-nmaster.diff][1] (dwm 4.4) (2.8kb) (20070826) - * [nmaster+bstack-5.6.1.diff](nmaster+bstack-5.6.1.diff) (dwm 5.6.1) (5.9kb) (20090817) + * [nmaster+bstack-5.6.1.diff](nmaster+bstack-5.6.1.diff) (dwm 5.6.1) (5.9kb) (20090824) - another variation; contains bstack with nmaster support [1]: http://schot.a-eskwadraat.nl/files/dwm-4.4.1-nmaster.diff