[wiki] [sites] move old bstack patches to historical, minor tweaks to markdown || Carlos J. Torres

From: <hg_AT_suckless.org>
Date: Tue, 28 Feb 2012 21:01:37 +0100 (CET)

changeset: 870:a849d73cf984
tag: tip
user: Carlos J. Torres <vlaadbrain_AT_gmail.com>
date: Tue Feb 28 15:00:07 2012 -0500
files: dwm.suckless.org/patches/bottom_stack.md dwm.suckless.org/patches/dwm-5.8.2-bstack-alt.diff dwm.suckless.org/patches/dwm-5.8.2-bstack.diff dwm.suckless.org/patches/dwm-5.9-bstack-alt.diff dwm.suckless.org/patches/dwm-5.9-bstack.diff dwm.suckless.org/patches/historical/dwm-5.8.2-bstack-alt.diff dwm.suckless.org/patches/historical/dwm-5.8.2-bstack.diff dwm.suckless.org/patches/historical/dwm-5.9-bstack-alt.diff dwm.suckless.org/patches/historical/dwm-5.9-bstack.diff
description:
move old bstack patches to historical, minor tweaks to markdown


diff -r 63b2b21dd22a -r a849d73cf984 dwm.suckless.org/patches/bottom_stack.md
--- a/dwm.suckless.org/patches/bottom_stack.md Tue Feb 28 11:36:41 2012 -0500
+++ b/dwm.suckless.org/patches/bottom_stack.md Tue Feb 28 15:00:07 2012 -0500
_AT_@ -30,14 +30,15 @@
 
 Download
 --------
-* Not for use with pertag patch: [dwm-5.8.2-bstack.diff](dwm-5.8.2-bstack.diff)
-* For use with pertag patch: [dwm-5.8.2-bstack-alt.diff](dwm-5.8.2-bstack-alt.diff)
+### 6.0
+* Not for use with pertag patch: [dwm-6.0-bstack.diff](dwm-6.0-bstack.diff)
+
+### 5.9
+* Not for use with pertag patch: [dwm-5.9-bstack.diff](historical/dwm-5.9-bstack.diff)
+* For use with pertag patch: [dwm-5.9-bstack-alt.diff](historical/dwm-5.9-bstack-alt.diff)
+
+### 5.8
+* Not for use with pertag patch: [dwm-5.8.2-bstack.diff](historical/dwm-5.8.2-bstack.diff)
+* For use with pertag patch: [dwm-5.8.2-bstack-alt.diff](historical/dwm-5.8.2-bstack-alt.diff)
 * see older versions in [historical patches](historical)
 
-5.9 (20110107) :
-* Not for use with pertag patch: [dwm-5.9-bstack.diff](dwm-5.9-bstack.diff)
-* For use with pertag patch: [dwm-5.9-bstack-alt.diff](dwm-5.9-bstack-alt.diff)
-
-6.0 (20120228) : is aware of nmaster
-* Not for use with pertag patch: [dwm-6.0-bstack.diff](dwm-6.0-bstack.diff)
-
diff -r 63b2b21dd22a -r a849d73cf984 dwm.suckless.org/patches/dwm-5.8.2-bstack-alt.diff
--- a/dwm.suckless.org/patches/dwm-5.8.2-bstack-alt.diff Tue Feb 28 11:36:41 2012 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
_AT_@ -1,93 +0,0 @@
-diff -up dwm-5.8.2-original/config.def.h dwm-5.8.2/config.def.h
---- dwm-5.8.2-original/config.def.h 2010-06-04 06:39:15.000000000 -0400
-+++ dwm-5.8.2/config.def.h 2010-07-07 14:56:15.000000000 -0400
-_AT_@ -31,6 +31,8 @@ static const Layout layouts[] = {
- { "[]=", tile }, /* first entry is default */
- { "><>", NULL }, /* no layout function means floating behavior */
- { "[M]", monocle },
-+ { "TTT", bstack },
-+ { "===", bstackhoriz },
- };
-
- /* key definitions */
-diff -up dwm-5.8.2-original/dwm.c dwm-5.8.2/dwm.c
---- dwm-5.8.2-original/dwm.c 2010-06-04 06:39:15.000000000 -0400
-+++ dwm-5.8.2/dwm.c 2010-07-07 15:03:16.000000000 -0400
-_AT_@ -158,6 +158,8 @@ static void arrange(Monitor *m);
- static void arrangemon(Monitor *m);
- static void attach(Client *c);
- static void attachstack(Client *c);
-+static void bstack(Monitor *m);
-+static void bstackhoriz(Monitor *m);
- static void buttonpress(XEvent *e);
- static void checkotherwm(void);
- static void cleanup(void);
-_AT_@ -1657,6 +1659,67 @@ tile(Monitor *m) {
- if(h < bh)
- h = m->wh;
- for(i = 0, c = nexttiled(c->next); c; c = nexttiled(c->next), i++) {
-+ resize(c, x, y, w - 2 * c->bw, /* remainder */ ((i + 1 == n)
-+ ? m->wy + m->wh - y - 2 * c->bw : h - 2 * c->bw), False);
-+ if(h != m->wh)
-+ y = c->y + HEIGHT(c);
-+ }
-+}
-+
-+static void
-+bstack(Monitor *m) {
-+ int x, y, h, w, mh;
-+ unsigned int i, n;
-+ Client *c;
-+
-+ for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);
-+ if(n == 0)
-+ return;
-+ /* master */
-+ c = nexttiled(m->clients);
-+ mh = m->mfact * m->wh;
-+ resize(c, m->wx, m->wy, m->ww - 2 * c->bw, (n == 1 ? m->wh : mh) - 2 * c->bw, False);
-+ if(--n == 0)
-+ return;
-+ /* tile stack */
-+ x = m->wx;
-+ y = (m->wy + mh > c->y + c->h) ? c->y + c->h + 2 * c->bw : m->wy + mh;
-+ w = m->ww / n;
-+ h = (m->wy + mh > c->y + c->h) ? m->wy + m->wh - y : m->wh - mh;
-+ if(w < bh)
-+ w = m->ww;
-+ for(i = 0, c = nexttiled(c->next); c; c = nexttiled(c->next), i++) {
-+ resize(c, x, y, /* remainder */ ((i + 1 == n)
-+ ? m->wx + m->ww - x - 2 * c->bw : w - 2 * c->bw), h - 2 * c->bw, False);
-+ if(w != m->ww)
-+ x = c->x + WIDTH(c);
-+ }
-+}
-+
-+static void
-+bstackhoriz(Monitor *m) {
-+ int x, y, h, w, mh;
-+ unsigned int i, n;
-+ Client *c;
-+
-+ for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);
-+ if(n == 0)
-+ return;
-+ /* master */
-+ c = nexttiled(m->clients);
-+ mh = m->mfact * m->wh;
-+ resize(c, m->wx, m->wy, m->ww - 2 * c->bw, (n == 1 ? m->wh : mh) - 2 * c->bw, False);
-+ if(--n == 0)
-+ return;
-+ /* tile stack */
-+ x = m->wx;
-+ y = (m->wy + mh > c->y + c->h) ? c->y + c->h + 2 * c->bw : m->wy + mh;
-+ w = m->ww;
-+ h = (m->wy + mh > c->y + c->h) ? m->wy + m->wh - y : m->wh - mh;
-+ h /= n;
-+ if(h < bh)
-+ h = m->wh;
-+ for(i = 0, c = nexttiled(c->next); c; c = nexttiled(c->next), i++) {
- resize(c, x, y, w - 2 * c->bw, /* remainder */ ((i + 1 == n)
- ? m->wy + m->wh - y - 2 * c->bw : h - 2 * c->bw), False);
- if(h != m->wh)
-
diff -r 63b2b21dd22a -r a849d73cf984 dwm.suckless.org/patches/dwm-5.8.2-bstack.diff
--- a/dwm.suckless.org/patches/dwm-5.8.2-bstack.diff Tue Feb 28 11:36:41 2012 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
_AT_@ -1,82 +0,0 @@
-diff -NU5 -r dwm-5.8.2/bstack.c dwm-5.8.2-bstack/bstack.c
---- dwm-5.8.2/bstack.c 1970-01-01 01:00:00.000000000 +0100
-+++ dwm-5.8.2-bstack/bstack.c 2010-06-15 17:47:44.000000000 +0200
-_AT_@ -0,0 +1,29 @@
-+static void
-+bstack(Monitor *m) {
-+ int x, y, h, w, mh;
-+ unsigned int i, n;
-+ Client *c;
-+
-+ for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);
-+ if(n == 0)
-+ return;
-+ /* master */
-+ c = nexttiled(m->clients);
-+ mh = m->mfact * m->wh;
-+ resize(c, m->wx, m->wy, m->ww - 2 * c->bw, (n == 1 ? m->wh : mh) - 2 * c->bw, False);
-+ if(--n == 0)
-+ return;
-+ /* tile stack */
-+ x = m->wx;
-+ y = (m->wy + mh > c->y + c->h) ? c->y + c->h + 2 * c->bw : m->wy + mh;
-+ w = m->ww / n;
-+ h = (m->wy + mh > c->y + c->h) ? m->wy + m->wh - y : m->wh - mh;
-+ if(w < bh)
-+ w = m->ww;
-+ for(i = 0, c = nexttiled(c->next); c; c = nexttiled(c->next), i++) {
-+ resize(c, x, y, /* remainder */ ((i + 1 == n)
-+ ? m->wx + m->ww - x - 2 * c->bw : w - 2 * c->bw), h - 2 * c->bw, False);
-+ if(w != m->ww)
-+ x = c->x + WIDTH(c);
-+ }
-+}
-diff -NU5 -r dwm-5.8.2/bstackhoriz.c dwm-5.8.2-bstack/bstackhoriz.c
---- dwm-5.8.2/bstackhoriz.c 1970-01-01 01:00:00.000000000 +0100
-+++ dwm-5.8.2-bstack/bstackhoriz.c 2010-06-15 17:47:44.000000000 +0200
-_AT_@ -0,0 +1,30 @@
-+static void
-+bstackhoriz(Monitor *m) {
-+ int x, y, h, w, mh;
-+ unsigned int i, n;
-+ Client *c;
-+
-+ for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);
-+ if(n == 0)
-+ return;
-+ /* master */
-+ c = nexttiled(m->clients);
-+ mh = m->mfact * m->wh;
-+ resize(c, m->wx, m->wy, m->ww - 2 * c->bw, (n == 1 ? m->wh : mh) - 2 * c->bw, False);
-+ if(--n == 0)
-+ return;
-+ /* tile stack */
-+ x = m->wx;
-+ y = (m->wy + mh > c->y + c->h) ? c->y + c->h + 2 * c->bw : m->wy + mh;
-+ w = m->ww;
-+ h = (m->wy + mh > c->y + c->h) ? m->wy + m->wh - y : m->wh - mh;
-+ h /= n;
-+ if(h < bh)
-+ h = m->wh;
-+ for(i = 0, c = nexttiled(c->next); c; c = nexttiled(c->next), i++) {
-+ resize(c, x, y, w - 2 * c->bw, /* remainder */ ((i + 1 == n)
-+ ? m->wy + m->wh - y - 2 * c->bw : h - 2 * c->bw), False);
-+ if(h != m->wh)
-+ y = c->y + HEIGHT(c);
-+ }
-+}
-diff -NU5 -r dwm-5.8.2/config.def.h dwm-5.8.2-bstack/config.def.h
---- dwm-5.8.2/config.def.h 2010-06-04 12:39:15.000000000 +0200
-+++ dwm-5.8.2-bstack/config.def.h 2010-06-15 17:47:44.000000000 +0200
-_AT_@ -29,1 +29,3 @@
-+#include "bstack.c"
-+#include "bstackhoriz.c"
- static const Layout layouts[] = {
-_AT_@ -34,5 +36,7 @@
-+ { "TTT", bstack },
-+ { "===", bstackhoriz },
- };
-
- /* key definitions */
- #define MODKEY Mod1Mask
- #define TAGKEYS(KEY,TAG) \
diff -r 63b2b21dd22a -r a849d73cf984 dwm.suckless.org/patches/dwm-5.9-bstack-alt.diff
--- a/dwm.suckless.org/patches/dwm-5.9-bstack-alt.diff Tue Feb 28 11:36:41 2012 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
_AT_@ -1,98 +0,0 @@
-diff -up dwm-5.8.2-original/config.def.h dwm-5.8.2/config.def.h
---- dwm-5.8.2-original/config.def.h 2010-06-04 06:39:15.000000000 -0400
-+++ dwm-5.8.2/config.def.h 2010-07-07 14:56:15.000000000 -0400
-_AT_@ -31,6 +31,8 @@ static const Layout layouts[] = {
- /* symbol arrange function */
- { "[]=", tile }, /* first entry is default */
- { "><>", NULL }, /* no layout function means floating behavior */
- { "[M]", monocle },
-+ { "TTT", bstack },
-+ { "===", bstackhoriz },
- };
-
- /* key definitions */
- #define MODKEY Mod1Mask
- #define TAGKEYS(KEY,TAG) \
- };
-
-diff -up dwm-5.8.2-original/dwm.c dwm-5.8.2/dwm.c
---- dwm-5.8.2-original/dwm.c 2010-06-04 06:39:15.000000000 -0400
-+++ dwm-5.8.2/dwm.c 2010-07-07 15:03:16.000000000 -0400
-_AT_@ -158,6 +158,8 @@ static void arrange(Monitor *m);
- static void arrangemon(Monitor *m);
- static void attach(Client *c);
- static void attachstack(Client *c);
-+static void bstack(Monitor *m);
-+static void bstackhoriz(Monitor *m);
- static void buttonpress(XEvent *e);
- static void checkotherwm(void);
- static void cleanup(void);
-_AT_@ -1657,6 +1659,67 @@ tile(Monitor *m) {
- if(h < bh)
- h = m->wh;
- for(i = 0, c = nexttiled(c->next); c; c = nexttiled(c->next), i++) {
-+ resize(c, x, y, w - 2 * c->bw, /* remainder */ ((i + 1 == n)
-+ ? m->wy + m->wh - y - 2 * c->bw : h - 2 * c->bw), False);
-+ if(h != m->wh)
-+ y = c->y + HEIGHT(c);
-+ }
-+}
-+
-+static void
-+bstack(Monitor *m) {
-+ int x, y, h, w, mh;
-+ unsigned int i, n;
-+ Client *c;
-+
-+ for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);
-+ if(n == 0)
-+ return;
-+ /* master */
-+ c = nexttiled(m->clients);
-+ mh = m->mfact * m->wh;
-+ resize(c, m->wx, m->wy, m->ww - 2 * c->bw, (n == 1 ? m->wh : mh) - 2 * c->bw, False);
-+ if(--n == 0)
-+ return;
-+ /* tile stack */
-+ x = m->wx;
-+ y = (m->wy + mh > c->y + c->h) ? c->y + c->h + 2 * c->bw : m->wy + mh;
-+ w = m->ww / n;
-+ h = (m->wy + mh > c->y + c->h) ? m->wy + m->wh - y : m->wh - mh;
-+ if(w < bh)
-+ w = m->ww;
-+ for(i = 0, c = nexttiled(c->next); c; c = nexttiled(c->next), i++) {
-+ resize(c, x, y, /* remainder */ ((i + 1 == n)
-+ ? m->wx + m->ww - x - 2 * c->bw : w - 2 * c->bw), h - 2 * c->bw, False);
-+ if(w != m->ww)
-+ x = c->x + WIDTH(c);
-+ }
-+}
-+
-+static void
-+bstackhoriz(Monitor *m) {
-+ int x, y, h, w, mh;
-+ unsigned int i, n;
-+ Client *c;
-+
-+ for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);
-+ if(n == 0)
-+ return;
-+ /* master */
-+ c = nexttiled(m->clients);
-+ mh = m->mfact * m->wh;
-+ resize(c, m->wx, m->wy, m->ww - 2 * c->bw, (n == 1 ? m->wh : mh) - 2 * c->bw, False);
-+ if(--n == 0)
-+ return;
-+ /* tile stack */
-+ x = m->wx;
-+ y = (m->wy + mh > c->y + c->h) ? c->y + c->h + 2 * c->bw : m->wy + mh;
-+ w = m->ww;
-+ h = (m->wy + mh > c->y + c->h) ? m->wy + m->wh - y : m->wh - mh;
-+ h /= n;
-+ if(h < bh)
-+ h = m->wh;
-+ for(i = 0, c = nexttiled(c->next); c; c = nexttiled(c->next), i++) {
- resize(c, x, y, w - 2 * c->bw, /* remainder */ ((i + 1 == n)
- ? m->wy + m->wh - y - 2 * c->bw : h - 2 * c->bw), False);
- if(h != m->wh)
-
diff -r 63b2b21dd22a -r a849d73cf984 dwm.suckless.org/patches/dwm-5.9-bstack.diff
--- a/dwm.suckless.org/patches/dwm-5.9-bstack.diff Tue Feb 28 11:36:41 2012 -0500
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
_AT_@ -1,87 +0,0 @@
-diff -NU5 -r dwm-5.8.2/bstack.c dwm-5.8.2-bstack/bstack.c
---- dwm-5.8.2/bstack.c 1970-01-01 01:00:00.000000000 +0100
-+++ dwm-5.8.2-bstack/bstack.c 2010-06-15 17:47:44.000000000 +0200
-_AT_@ -0,0 +1,29 @@
-+static void
-+bstack(Monitor *m) {
-+ int x, y, h, w, mh;
-+ unsigned int i, n;
-+ Client *c;
-+
-+ for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);
-+ if(n == 0)
-+ return;
-+ /* master */
-+ c = nexttiled(m->clients);
-+ mh = m->mfact * m->wh;
-+ resize(c, m->wx, m->wy, m->ww - 2 * c->bw, (n == 1 ? m->wh : mh) - 2 * c->bw, False);
-+ if(--n == 0)
-+ return;
-+ /* tile stack */
-+ x = m->wx;
-+ y = (m->wy + mh > c->y + c->h) ? c->y + c->h + 2 * c->bw : m->wy + mh;
-+ w = m->ww / n;
-+ h = (m->wy + mh > c->y + c->h) ? m->wy + m->wh - y : m->wh - mh;
-+ if(w < bh)
-+ w = m->ww;
-+ for(i = 0, c = nexttiled(c->next); c; c = nexttiled(c->next), i++) {
-+ resize(c, x, y, /* remainder */ ((i + 1 == n)
-+ ? m->wx + m->ww - x - 2 * c->bw : w - 2 * c->bw), h - 2 * c->bw, False);
-+ if(w != m->ww)
-+ x = c->x + WIDTH(c);
-+ }
-+}
-diff -NU5 -r dwm-5.8.2/bstackhoriz.c dwm-5.8.2-bstack/bstackhoriz.c
---- dwm-5.8.2/bstackhoriz.c 1970-01-01 01:00:00.000000000 +0100
-+++ dwm-5.8.2-bstack/bstackhoriz.c 2010-06-15 17:47:44.000000000 +0200
-_AT_@ -0,0 +1,30 @@
-+static void
-+bstackhoriz(Monitor *m) {
-+ int x, y, h, w, mh;
-+ unsigned int i, n;
-+ Client *c;
-+
-+ for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);
-+ if(n == 0)
-+ return;
-+ /* master */
-+ c = nexttiled(m->clients);
-+ mh = m->mfact * m->wh;
-+ resize(c, m->wx, m->wy, m->ww - 2 * c->bw, (n == 1 ? m->wh : mh) - 2 * c->bw, False);
-+ if(--n == 0)
-+ return;
-+ /* tile stack */
-+ x = m->wx;
-+ y = (m->wy + mh > c->y + c->h) ? c->y + c->h + 2 * c->bw : m->wy + mh;
-+ w = m->ww;
-+ h = (m->wy + mh > c->y + c->h) ? m->wy + m->wh - y : m->wh - mh;
-+ h /= n;
-+ if(h < bh)
-+ h = m->wh;
-+ for(i = 0, c = nexttiled(c->next); c; c = nexttiled(c->next), i++) {
-+ resize(c, x, y, w - 2 * c->bw, /* remainder */ ((i + 1 == n)
-+ ? m->wy + m->wh - y - 2 * c->bw : h - 2 * c->bw), False);
-+ if(h != m->wh)
-+ y = c->y + HEIGHT(c);
-+ }
-+}
-
-diff -r 23b71491e149 config.def.h
---- a/config.def.h Thu Dec 02 10:16:47 2010 +0000
-+++ b/config.def.h Fri Jan 07 15:10:06 2011 +0100
-_AT_@ -26,11 +26,15 @@
- static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
- static const Bool resizehints = True; /* True means respect size hints in tiled resizals */
-
-+#include "bstack.c"
-+#include "bstackhoriz.c"
- static const Layout layouts[] = {
- /* symbol arrange function */
- { "[]=", tile }, /* first entry is default */
- { "><>", NULL }, /* no layout function means floating behavior */
- { "[M]", monocle },
-+ { "TTT", bstack },
-+ { "===", bstackhoriz },
- };
-
- /* key definitions */
diff -r 63b2b21dd22a -r a849d73cf984 dwm.suckless.org/patches/historical/dwm-5.8.2-bstack-alt.diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dwm.suckless.org/patches/historical/dwm-5.8.2-bstack-alt.diff Tue Feb 28 15:00:07 2012 -0500
_AT_@ -0,0 +1,93 @@
+diff -up dwm-5.8.2-original/config.def.h dwm-5.8.2/config.def.h
+--- dwm-5.8.2-original/config.def.h 2010-06-04 06:39:15.000000000 -0400
++++ dwm-5.8.2/config.def.h 2010-07-07 14:56:15.000000000 -0400
+_AT_@ -31,6 +31,8 @@ static const Layout layouts[] = {
+ { "[]=", tile }, /* first entry is default */
+ { "><>", NULL }, /* no layout function means floating behavior */
+ { "[M]", monocle },
++ { "TTT", bstack },
++ { "===", bstackhoriz },
+ };
+
+ /* key definitions */
+diff -up dwm-5.8.2-original/dwm.c dwm-5.8.2/dwm.c
+--- dwm-5.8.2-original/dwm.c 2010-06-04 06:39:15.000000000 -0400
++++ dwm-5.8.2/dwm.c 2010-07-07 15:03:16.000000000 -0400
+_AT_@ -158,6 +158,8 @@ static void arrange(Monitor *m);
+ static void arrangemon(Monitor *m);
+ static void attach(Client *c);
+ static void attachstack(Client *c);
++static void bstack(Monitor *m);
++static void bstackhoriz(Monitor *m);
+ static void buttonpress(XEvent *e);
+ static void checkotherwm(void);
+ static void cleanup(void);
+_AT_@ -1657,6 +1659,67 @@ tile(Monitor *m) {
+ if(h < bh)
+ h = m->wh;
+ for(i = 0, c = nexttiled(c->next); c; c = nexttiled(c->next), i++) {
++ resize(c, x, y, w - 2 * c->bw, /* remainder */ ((i + 1 == n)
++ ? m->wy + m->wh - y - 2 * c->bw : h - 2 * c->bw), False);
++ if(h != m->wh)
++ y = c->y + HEIGHT(c);
++ }
++}
++
++static void
++bstack(Monitor *m) {
++ int x, y, h, w, mh;
++ unsigned int i, n;
++ Client *c;
++
++ for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);
++ if(n == 0)
++ return;
++ /* master */
++ c = nexttiled(m->clients);
++ mh = m->mfact * m->wh;
++ resize(c, m->wx, m->wy, m->ww - 2 * c->bw, (n == 1 ? m->wh : mh) - 2 * c->bw, False);
++ if(--n == 0)
++ return;
++ /* tile stack */
++ x = m->wx;
++ y = (m->wy + mh > c->y + c->h) ? c->y + c->h + 2 * c->bw : m->wy + mh;
++ w = m->ww / n;
++ h = (m->wy + mh > c->y + c->h) ? m->wy + m->wh - y : m->wh - mh;
++ if(w < bh)
++ w = m->ww;
++ for(i = 0, c = nexttiled(c->next); c; c = nexttiled(c->next), i++) {
++ resize(c, x, y, /* remainder */ ((i + 1 == n)
++ ? m->wx + m->ww - x - 2 * c->bw : w - 2 * c->bw), h - 2 * c->bw, False);
++ if(w != m->ww)
++ x = c->x + WIDTH(c);
++ }
++}
++
++static void
++bstackhoriz(Monitor *m) {
++ int x, y, h, w, mh;
++ unsigned int i, n;
++ Client *c;
++
++ for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);
++ if(n == 0)
++ return;
++ /* master */
++ c = nexttiled(m->clients);
++ mh = m->mfact * m->wh;
++ resize(c, m->wx, m->wy, m->ww - 2 * c->bw, (n == 1 ? m->wh : mh) - 2 * c->bw, False);
++ if(--n == 0)
++ return;
++ /* tile stack */
++ x = m->wx;
++ y = (m->wy + mh > c->y + c->h) ? c->y + c->h + 2 * c->bw : m->wy + mh;
++ w = m->ww;
++ h = (m->wy + mh > c->y + c->h) ? m->wy + m->wh - y : m->wh - mh;
++ h /= n;
++ if(h < bh)
++ h = m->wh;
++ for(i = 0, c = nexttiled(c->next); c; c = nexttiled(c->next), i++) {
+ resize(c, x, y, w - 2 * c->bw, /* remainder */ ((i + 1 == n)
+ ? m->wy + m->wh - y - 2 * c->bw : h - 2 * c->bw), False);
+ if(h != m->wh)
+
diff -r 63b2b21dd22a -r a849d73cf984 dwm.suckless.org/patches/historical/dwm-5.8.2-bstack.diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dwm.suckless.org/patches/historical/dwm-5.8.2-bstack.diff Tue Feb 28 15:00:07 2012 -0500
_AT_@ -0,0 +1,82 @@
+diff -NU5 -r dwm-5.8.2/bstack.c dwm-5.8.2-bstack/bstack.c
+--- dwm-5.8.2/bstack.c 1970-01-01 01:00:00.000000000 +0100
++++ dwm-5.8.2-bstack/bstack.c 2010-06-15 17:47:44.000000000 +0200
+_AT_@ -0,0 +1,29 @@
++static void
++bstack(Monitor *m) {
++ int x, y, h, w, mh;
++ unsigned int i, n;
++ Client *c;
++
++ for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);
++ if(n == 0)
++ return;
++ /* master */
++ c = nexttiled(m->clients);
++ mh = m->mfact * m->wh;
++ resize(c, m->wx, m->wy, m->ww - 2 * c->bw, (n == 1 ? m->wh : mh) - 2 * c->bw, False);
++ if(--n == 0)
++ return;
++ /* tile stack */
++ x = m->wx;
++ y = (m->wy + mh > c->y + c->h) ? c->y + c->h + 2 * c->bw : m->wy + mh;
++ w = m->ww / n;
++ h = (m->wy + mh > c->y + c->h) ? m->wy + m->wh - y : m->wh - mh;
++ if(w < bh)
++ w = m->ww;
++ for(i = 0, c = nexttiled(c->next); c; c = nexttiled(c->next), i++) {
++ resize(c, x, y, /* remainder */ ((i + 1 == n)
++ ? m->wx + m->ww - x - 2 * c->bw : w - 2 * c->bw), h - 2 * c->bw, False);
++ if(w != m->ww)
++ x = c->x + WIDTH(c);
++ }
++}
+diff -NU5 -r dwm-5.8.2/bstackhoriz.c dwm-5.8.2-bstack/bstackhoriz.c
+--- dwm-5.8.2/bstackhoriz.c 1970-01-01 01:00:00.000000000 +0100
++++ dwm-5.8.2-bstack/bstackhoriz.c 2010-06-15 17:47:44.000000000 +0200
+_AT_@ -0,0 +1,30 @@
++static void
++bstackhoriz(Monitor *m) {
++ int x, y, h, w, mh;
++ unsigned int i, n;
++ Client *c;
++
++ for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);
++ if(n == 0)
++ return;
++ /* master */
++ c = nexttiled(m->clients);
++ mh = m->mfact * m->wh;
++ resize(c, m->wx, m->wy, m->ww - 2 * c->bw, (n == 1 ? m->wh : mh) - 2 * c->bw, False);
++ if(--n == 0)
++ return;
++ /* tile stack */
++ x = m->wx;
++ y = (m->wy + mh > c->y + c->h) ? c->y + c->h + 2 * c->bw : m->wy + mh;
++ w = m->ww;
++ h = (m->wy + mh > c->y + c->h) ? m->wy + m->wh - y : m->wh - mh;
++ h /= n;
++ if(h < bh)
++ h = m->wh;
++ for(i = 0, c = nexttiled(c->next); c; c = nexttiled(c->next), i++) {
++ resize(c, x, y, w - 2 * c->bw, /* remainder */ ((i + 1 == n)
++ ? m->wy + m->wh - y - 2 * c->bw : h - 2 * c->bw), False);
++ if(h != m->wh)
++ y = c->y + HEIGHT(c);
++ }
++}
+diff -NU5 -r dwm-5.8.2/config.def.h dwm-5.8.2-bstack/config.def.h
+--- dwm-5.8.2/config.def.h 2010-06-04 12:39:15.000000000 +0200
++++ dwm-5.8.2-bstack/config.def.h 2010-06-15 17:47:44.000000000 +0200
+_AT_@ -29,1 +29,3 @@
++#include "bstack.c"
++#include "bstackhoriz.c"
+ static const Layout layouts[] = {
+_AT_@ -34,5 +36,7 @@
++ { "TTT", bstack },
++ { "===", bstackhoriz },
+ };
+
+ /* key definitions */
+ #define MODKEY Mod1Mask
+ #define TAGKEYS(KEY,TAG) \
diff -r 63b2b21dd22a -r a849d73cf984 dwm.suckless.org/patches/historical/dwm-5.9-bstack-alt.diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dwm.suckless.org/patches/historical/dwm-5.9-bstack-alt.diff Tue Feb 28 15:00:07 2012 -0500
_AT_@ -0,0 +1,98 @@
+diff -up dwm-5.8.2-original/config.def.h dwm-5.8.2/config.def.h
+--- dwm-5.8.2-original/config.def.h 2010-06-04 06:39:15.000000000 -0400
++++ dwm-5.8.2/config.def.h 2010-07-07 14:56:15.000000000 -0400
+_AT_@ -31,6 +31,8 @@ static const Layout layouts[] = {
+ /* symbol arrange function */
+ { "[]=", tile }, /* first entry is default */
+ { "><>", NULL }, /* no layout function means floating behavior */
+ { "[M]", monocle },
++ { "TTT", bstack },
++ { "===", bstackhoriz },
+ };
+
+ /* key definitions */
+ #define MODKEY Mod1Mask
+ #define TAGKEYS(KEY,TAG) \
+ };
+
+diff -up dwm-5.8.2-original/dwm.c dwm-5.8.2/dwm.c
+--- dwm-5.8.2-original/dwm.c 2010-06-04 06:39:15.000000000 -0400
++++ dwm-5.8.2/dwm.c 2010-07-07 15:03:16.000000000 -0400
+_AT_@ -158,6 +158,8 @@ static void arrange(Monitor *m);
+ static void arrangemon(Monitor *m);
+ static void attach(Client *c);
+ static void attachstack(Client *c);
++static void bstack(Monitor *m);
++static void bstackhoriz(Monitor *m);
+ static void buttonpress(XEvent *e);
+ static void checkotherwm(void);
+ static void cleanup(void);
+_AT_@ -1657,6 +1659,67 @@ tile(Monitor *m) {
+ if(h < bh)
+ h = m->wh;
+ for(i = 0, c = nexttiled(c->next); c; c = nexttiled(c->next), i++) {
++ resize(c, x, y, w - 2 * c->bw, /* remainder */ ((i + 1 == n)
++ ? m->wy + m->wh - y - 2 * c->bw : h - 2 * c->bw), False);
++ if(h != m->wh)
++ y = c->y + HEIGHT(c);
++ }
++}
++
++static void
++bstack(Monitor *m) {
++ int x, y, h, w, mh;
++ unsigned int i, n;
++ Client *c;
++
++ for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);
++ if(n == 0)
++ return;
++ /* master */
++ c = nexttiled(m->clients);
++ mh = m->mfact * m->wh;
++ resize(c, m->wx, m->wy, m->ww - 2 * c->bw, (n == 1 ? m->wh : mh) - 2 * c->bw, False);
++ if(--n == 0)
++ return;
++ /* tile stack */
++ x = m->wx;
++ y = (m->wy + mh > c->y + c->h) ? c->y + c->h + 2 * c->bw : m->wy + mh;
++ w = m->ww / n;
++ h = (m->wy + mh > c->y + c->h) ? m->wy + m->wh - y : m->wh - mh;
++ if(w < bh)
++ w = m->ww;
++ for(i = 0, c = nexttiled(c->next); c; c = nexttiled(c->next), i++) {
++ resize(c, x, y, /* remainder */ ((i + 1 == n)
++ ? m->wx + m->ww - x - 2 * c->bw : w - 2 * c->bw), h - 2 * c->bw, False);
++ if(w != m->ww)
++ x = c->x + WIDTH(c);
++ }
++}
++
++static void
++bstackhoriz(Monitor *m) {
++ int x, y, h, w, mh;
++ unsigned int i, n;
++ Client *c;
++
++ for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);
++ if(n == 0)
++ return;
++ /* master */
++ c = nexttiled(m->clients);
++ mh = m->mfact * m->wh;
++ resize(c, m->wx, m->wy, m->ww - 2 * c->bw, (n == 1 ? m->wh : mh) - 2 * c->bw, False);
++ if(--n == 0)
++ return;
++ /* tile stack */
++ x = m->wx;
++ y = (m->wy + mh > c->y + c->h) ? c->y + c->h + 2 * c->bw : m->wy + mh;
++ w = m->ww;
++ h = (m->wy + mh > c->y + c->h) ? m->wy + m->wh - y : m->wh - mh;
++ h /= n;
++ if(h < bh)
++ h = m->wh;
++ for(i = 0, c = nexttiled(c->next); c; c = nexttiled(c->next), i++) {
+ resize(c, x, y, w - 2 * c->bw, /* remainder */ ((i + 1 == n)
+ ? m->wy + m->wh - y - 2 * c->bw : h - 2 * c->bw), False);
+ if(h != m->wh)
+
diff -r 63b2b21dd22a -r a849d73cf984 dwm.suckless.org/patches/historical/dwm-5.9-bstack.diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/dwm.suckless.org/patches/historical/dwm-5.9-bstack.diff Tue Feb 28 15:00:07 2012 -0500
_AT_@ -0,0 +1,87 @@
+diff -NU5 -r dwm-5.8.2/bstack.c dwm-5.8.2-bstack/bstack.c
+--- dwm-5.8.2/bstack.c 1970-01-01 01:00:00.000000000 +0100
++++ dwm-5.8.2-bstack/bstack.c 2010-06-15 17:47:44.000000000 +0200
+_AT_@ -0,0 +1,29 @@
++static void
++bstack(Monitor *m) {
++ int x, y, h, w, mh;
++ unsigned int i, n;
++ Client *c;
++
++ for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);
++ if(n == 0)
++ return;
++ /* master */
++ c = nexttiled(m->clients);
++ mh = m->mfact * m->wh;
++ resize(c, m->wx, m->wy, m->ww - 2 * c->bw, (n == 1 ? m->wh : mh) - 2 * c->bw, False);
++ if(--n == 0)
++ return;
++ /* tile stack */
++ x = m->wx;
++ y = (m->wy + mh > c->y + c->h) ? c->y + c->h + 2 * c->bw : m->wy + mh;
++ w = m->ww / n;
++ h = (m->wy + mh > c->y + c->h) ? m->wy + m->wh - y : m->wh - mh;
++ if(w < bh)
++ w = m->ww;
++ for(i = 0, c = nexttiled(c->next); c; c = nexttiled(c->next), i++) {
++ resize(c, x, y, /* remainder */ ((i + 1 == n)
++ ? m->wx + m->ww - x - 2 * c->bw : w - 2 * c->bw), h - 2 * c->bw, False);
++ if(w != m->ww)
++ x = c->x + WIDTH(c);
++ }
++}
+diff -NU5 -r dwm-5.8.2/bstackhoriz.c dwm-5.8.2-bstack/bstackhoriz.c
+--- dwm-5.8.2/bstackhoriz.c 1970-01-01 01:00:00.000000000 +0100
++++ dwm-5.8.2-bstack/bstackhoriz.c 2010-06-15 17:47:44.000000000 +0200
+_AT_@ -0,0 +1,30 @@
++static void
++bstackhoriz(Monitor *m) {
++ int x, y, h, w, mh;
++ unsigned int i, n;
++ Client *c;
++
++ for(n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++);
++ if(n == 0)
++ return;
++ /* master */
++ c = nexttiled(m->clients);
++ mh = m->mfact * m->wh;
++ resize(c, m->wx, m->wy, m->ww - 2 * c->bw, (n == 1 ? m->wh : mh) - 2 * c->bw, False);
++ if(--n == 0)
++ return;
++ /* tile stack */
++ x = m->wx;
++ y = (m->wy + mh > c->y + c->h) ? c->y + c->h + 2 * c->bw : m->wy + mh;
++ w = m->ww;
++ h = (m->wy + mh > c->y + c->h) ? m->wy + m->wh - y : m->wh - mh;
++ h /= n;
++ if(h < bh)
++ h = m->wh;
++ for(i = 0, c = nexttiled(c->next); c; c = nexttiled(c->next), i++) {
++ resize(c, x, y, w - 2 * c->bw, /* remainder */ ((i + 1 == n)
++ ? m->wy + m->wh - y - 2 * c->bw : h - 2 * c->bw), False);
++ if(h != m->wh)
++ y = c->y + HEIGHT(c);
++ }
++}
+
+diff -r 23b71491e149 config.def.h
+--- a/config.def.h Thu Dec 02 10:16:47 2010 +0000
++++ b/config.def.h Fri Jan 07 15:10:06 2011 +0100
+_AT_@ -26,11 +26,15 @@
+ static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */
+ static const Bool resizehints = True; /* True means respect size hints in tiled resizals */
+
++#include "bstack.c"
++#include "bstackhoriz.c"
+ static const Layout layouts[] = {
+ /* symbol arrange function */
+ { "[]=", tile }, /* first entry is default */
+ { "><>", NULL }, /* no layout function means floating behavior */
+ { "[M]", monocle },
++ { "TTT", bstack },
++ { "===", bstackhoriz },
+ };
+
+ /* key definitions */
Received on Tue Feb 28 2012 - 21:01:37 CET

This archive was generated by hypermail 2.3.0 : Thu Sep 13 2012 - 19:32:08 CEST