Chris pointed me to the fact, that the window geoms calculation can be done once for each monitor, so I applied this remark 954db46b
Anselm R Garbe · 2008-02-11 20:57 1 file(s) · +6 −5
dwm.c +6 −5
1724 1724
		for(n = 0, c = nexttiled(clients, i); c; c = nexttiled(c->next, i))
1725 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 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 1734
			if(j == 0) { /* master */
1734 1735
				nx = m->wax;
1735 1736
				ny = m->way;