summaryrefslogtreecommitdiffstats
path: root/dwm.c
diff options
context:
space:
mode:
authorAnselm R Garbe <garbeam@gmail.com>2008-02-11 20:57:56 +0000
committerAnselm R Garbe <garbeam@gmail.com>2008-02-11 20:57:56 +0000
commit954db46bac481fd3f514f7af50d2af7e73fb9115 (patch)
tree273aaff3a573f56f13b9712b260497d9d4dc75e7 /dwm.c
parentfixed missing else branch (diff)
downloaddwm-954db46bac481fd3f514f7af50d2af7e73fb9115.tar.gz
dwm-954db46bac481fd3f514f7af50d2af7e73fb9115.zip
Chris pointed me to the fact, that the window geoms calculation can be done once for each monitor, so I applied this remark
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/dwm.c b/dwm.c
index 48e0dd1..79a3a33 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1724,12 +1724,13 @@ tile(void) {
1724 for(n = 0, c = nexttiled(clients, i); c; c = nexttiled(c->next, i)) 1724 for(n = 0, c = nexttiled(clients, i); c; c = nexttiled(c->next, i))
1725 n++; 1725 n++;
1726 1726
1727 /* window geoms */
1728 mw = (n == 1) ? m->waw : m->mwfact * m->waw;
1729 th = (n > 1) ? m->wah / (n - 1) : 0;
1730 if(n > 1 && th < bh)
1731 th = m->wah;
1732
1727 for(j = 0, c = mc = nexttiled(clients, i); c; c = nexttiled(c->next, i)) { 1733 for(j = 0, c = mc = nexttiled(clients, i); c; c = nexttiled(c->next, i)) {
1728 /* window geoms */
1729 mw = (n == 1) ? m->waw : m->mwfact * m->waw;
1730 th = (n > 1) ? m->wah / (n - 1) : 0;
1731 if(n > 1 && th < bh)
1732 th = m->wah;
1733 if(j == 0) { /* master */ 1734 if(j == 0) { /* master */
1734 nx = m->wax; 1735 nx = m->wax;
1735 ny = m->way; 1736 ny = m->way;